Skip to content

Commit

Permalink
Fix mandatory value check in "update" massive action context
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Oct 27, 2022
1 parent 6d1edac commit c8e97a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,9 @@ public static function validateValues($data, $itemtype, $massiveaction)
$db_result = [];
if ($result = $DB->query($query)) {
$db_result = $DB->fetchAssoc($result);
if (isset($db_result[$name])) {
if (isset($db_result['plugin_fields_' . $name . 'dropdowns_id'])) {
$value = $db_result['plugin_fields_' . $name . 'dropdowns_id'];
} else if (isset($db_result[$name])) {
$value = $db_result[$name];
}
}
Expand Down

0 comments on commit c8e97a3

Please sign in to comment.