Skip to content

Commit

Permalink
Fix queries expected to be an array, not a string
Browse files Browse the repository at this point in the history
closes #468
  • Loading branch information
trasher committed Apr 18, 2024
1 parent 7b607b5 commit 6a8ae15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ajax/dropdown_taskjob.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Can not acces directly to this file");
die("Can not access directly to this file");
}

Session::checkCentralAccess();
$id = filter_input(INPUT_POST, "id");
if (!empty($id) and $id > 0) {
Dropdown::show('PluginGlpiinventoryTaskjob', [
'name' => "taskjobs_id",
'condition' => "`plugin_glpiinventory_tasks_id`='" . $id . "'"
'condition' => ['plugin_glpiinventory_tasks_id' => $id]
]);
}
4 changes: 2 additions & 2 deletions ajax/dropdownjobdefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
break;

case "group":
$cond = ($actortype == 'assign' ? $cond = '`is_assign`' : $cond = '`is_requester`');
$cond = $actortype == 'assign' ? 'is_assign' : 'is_requester';
Dropdown::show('Group', ['name' => '_itil_' . $actortype . '[groups_id]',
'entity' => $entity_restrict,
'condition' => $cond]);
'condition' => [$cond => 1]]);
break;

case "supplier":
Expand Down

0 comments on commit 6a8ae15

Please sign in to comment.