Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/support/2.13.0' into support/2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 18, 2022
2 parents 2271e14 + afc274b commit 86f0e06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,10 @@ public function showTargets($ID, $options = []) {
$i++;
echo '<tr class="tab_bg_'.($i % 2).'">';
$targetItemUrl = $targetType::getFormURLWithID($targetId);
echo '<td onclick="document.location=\'' . $targetItemUrl . '\'" style="cursor: pointer">';
echo '<td><a href="' . $targetItemUrl . '">';

echo $target->fields['name'];
echo '</td>';

echo '<td align="center" width="32">';
echo '<i class="fas fa-edit" alt="*" title="'.__('Edit').'"
onclick="document.location=\'' . $targetItemUrl . '\'" align="absmiddle" style="cursor: pointer"></i> ';
echo '</td>';
echo '</a></td>';

echo '<td align="center" width="32">';
echo '<i class="far fa-trash-alt" alt="*" title="'.__('Delete', 'formcreator').'"
Expand Down
3 changes: 2 additions & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ function plugin_version_formcreator() {
echo 'This plugin requires GLPI >= ' . PLUGIN_FORMCREATOR_GLPI_MIN_VERSION;
return false;
}
$webDir = Plugin::getWebDir('formcreator');
$requirements = [
'name' => 'Form Creator',
'version' => PLUGIN_FORMCREATOR_VERSION,
'author' => '<a href="http://www.teclib.com">Teclib\'</a>',
'homepage' => 'https://github.com/pluginsGLPI/formcreator',
'license' => '<a href="../plugins/formcreator/LICENSE" target="_blank">GPLv2</a>',
'license' => '<a href="' . $webDir . '/LICENSE.md" target="_blank">GPLv2</a>',
'requirements' => [
'glpi' => [
'min' => PLUGIN_FORMCREATOR_GLPI_MIN_VERSION,
Expand Down

0 comments on commit 86f0e06

Please sign in to comment.