Standardize extrafields code

This commit is contained in:
Laurent Destailleur
2019-09-28 10:55:09 +02:00
parent e7beadb58a
commit 86e5465197
28 changed files with 56 additions and 28 deletions

View File

@@ -1266,7 +1266,7 @@ class Commande extends CommonOrder
$object->fetch_optionals($object->id);
$e = new ExtraFields($this->db);
$element_extrafields = $e->fetch_name_optionals_label($this->element);
$element_extrafields = $e->fetch_name_optionals_label($this->table_element);
foreach($object->array_options as $options_key => $value) {
if(array_key_exists(str_replace('options_', '', $options_key), $element_extrafields)){