diff --git a/ChangeLog b/ChangeLog index 00d936e3deb..68a39b7493b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -37,6 +37,7 @@ The following changes may create regressions for some external modules, but were * Removed trigger BILLREC_CREATEBILL. This trigger was not a CRUD event. If you used it, you can already use the trigger BILL_CREATE and test that ($object->fac_rec > 0) to know if creation trigger is from a recurring invoice or not. Also this old trigger was never enabled into table llx_c_action_trigger. +* Renamings in expedition line table and class, fk_origin_line is now fk_elementdet in table and class. diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d0b56a2784b..92bec84e625 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5107,7 +5107,7 @@ class Form * @param int<0,3> $outputmode 0=HTML select string, 1=Array with full label only, 2=Array extended, 3=Array with full picto + label * @param int<0,1> $include [=0] Removed or 1=Keep only * @param string $morecss More CSS - * @param int $useempty 1=Add an empty value in list, 2=Add an empty value in list only if there is more than 2 entries. + * @param int<0,2> $useempty 0=No empty value, 1=Add an empty value in list, 2=Add an empty value in list only if there is more than 2 entries. Default is 1. * @return string|array|array|array String list or Array of categories * @see select_categories() */ diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 50711dad5b9..f7302879a8b 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -2892,7 +2892,7 @@ class ExpeditionLigne extends CommonObjectLine $sql .= $this->fk_expedition; $sql .= ", ".(empty($this->entrepot_id) ? 'NULL' : $this->entrepot_id); $sql .= ", ".((int) $this->fk_elementdet); - $sql .= ", ".(empty($this->element_type) ? 'order' : $this->element_type); + $sql .= ", '".(empty($this->element_type) ? 'order' : $this->db->escape($this->element_type))."'"; $sql .= ", ".price2num($this->qty, 'MS'); $sql .= ", ".((int) $ranktouse); $sql .= ")";