diff --git a/htdocs/api/class/api.class.php b/htdocs/api/class/api.class.php index 554edbb892e..5987ddfea66 100644 --- a/htdocs/api/class/api.class.php +++ b/htdocs/api/class/api.class.php @@ -104,7 +104,7 @@ class DolibarrApi unset($object->restrictiononfksoc); unset($object->table_rowid); - // Remove linkedObjects. We should already have linkedObjectIds that avoid huge responses + // Remove linkedObjects. We should already have linkedObjectsIds that avoid huge responses unset($object->linkedObjects); unset($object->fields); diff --git a/htdocs/core/triggers/interface_99_modZapier_ZapierTriggers.class.php b/htdocs/core/triggers/interface_99_modZapier_ZapierTriggers.class.php index d028cf0f59f..95595863cb3 100644 --- a/htdocs/core/triggers/interface_99_modZapier_ZapierTriggers.class.php +++ b/htdocs/core/triggers/interface_99_modZapier_ZapierTriggers.class.php @@ -376,7 +376,7 @@ function cleanObjectDatas($toclean) // Remove $db object property for object unset($toclean->db); - // Remove linkedObjects. We should already have linkedObjectIds that avoid huge responses + // Remove linkedObjects. We should already have linkedObjectsIds that avoid huge responses unset($toclean->linkedObjects); unset($toclean->lines); // should be ->lines diff --git a/htdocs/delivery/class/delivery.class.php b/htdocs/delivery/class/delivery.class.php index 223aafee62e..4d498d70357 100644 --- a/htdocs/delivery/class/delivery.class.php +++ b/htdocs/delivery/class/delivery.class.php @@ -951,11 +951,11 @@ class Delivery extends CommonObject // Get the linked object $this->fetchObjectLinked('', '', $this->id, $this->element); - //var_dump($this->linkedObjectIds); + //var_dump($this->linkedObjectsIds); // Get the product ref and qty in source $sqlSourceLine = "SELECT st.rowid, st.description, st.qty"; $sqlSourceLine .= ", p.ref, p.label"; - $sqlSourceLine .= " FROM ".MAIN_DB_PREFIX.$this->linkedObjectIds[0]['type']."det as st"; + $sqlSourceLine .= " FROM ".MAIN_DB_PREFIX.$this->linkedObjectsIds[0]['type']."det as st"; $sqlSourceLine .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON st.fk_product = p.rowid"; $sqlSourceLine .= " WHERE fk_".$this->linked_object[0]['type']." = ".$this->linked_object[0]['linkid'];