Skip to content

Commit

Permalink
Fix(fields): rely on input first
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Feb 6, 2025
1 parent 7772165 commit 3853453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1664,10 +1664,10 @@ public static function preItemUpdate(CommonDBTM $item)
public static function preItem(CommonDBTM $item)
{
//find container (if not exist, do nothing)
if (isset($_REQUEST['c_id'])) {
$c_id = $_REQUEST['c_id'];
} elseif (isset($item->input['c_id'])) {
if (isset($item->input['c_id'])) {
$c_id = $item->input['c_id'];
} elseif (isset($_REQUEST['c_id'])) {
$c_id = $_REQUEST['c_id'];
} else {
$type = 'dom';
if (isset($_REQUEST['_plugin_fields_type'])) {
Expand Down

0 comments on commit 3853453

Please sign in to comment.