File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313- Fix containers migration while adding ` is_recursive ` field
1414- Fix container update from other context (like plugins)
1515- Fix "not equals" search operator for dropdown ` multiple `
16+ - Fix container data (` entities_id ` ) insert from ` dom ` type
1617
1718## [ 1.21.19] - 2025-02-03
1819
Original file line number Diff line number Diff line change @@ -1618,6 +1618,7 @@ public static function postItemAdd(CommonDBTM $item)
16181618 if (array_key_exists ('_plugin_fields_data ' , $ item ->input )) {
16191619 $ data = $ item ->input ['_plugin_fields_data ' ];
16201620 $ data ['items_id ' ] = $ item ->getID ();
1621+ $ data ['entities_id ' ] = $ item ->isEntityAssign () ? $ item ->getEntityID () : 0 ;
16211622 //update data
16221623 $ container = new self ();
16231624 if ($ container ->updateFieldsValues ($ data , $ item ->getType (), isset ($ _REQUEST ['massiveaction ' ]))) {
@@ -1644,6 +1645,7 @@ public static function preItemUpdate(CommonDBTM $item)
16441645 self ::preItem ($ item );
16451646 if (array_key_exists ('_plugin_fields_data ' , $ item ->input )) {
16461647 $ data = $ item ->input ['_plugin_fields_data ' ];
1648+ $ data ['entities_id ' ] = $ item ->isEntityAssign () ? $ item ->getEntityID () : 0 ;
16471649 //update data
16481650 $ container = new self ();
16491651 if (
You can’t perform that action at this time.
0 commit comments