diff --git a/htdocs/asset/class/assetdepreciationoptions.class.php b/htdocs/asset/class/assetdepreciationoptions.class.php index fed82c6b3c9..c798a5a6559 100644 --- a/htdocs/asset/class/assetdepreciationoptions.class.php +++ b/htdocs/asset/class/assetdepreciationoptions.class.php @@ -272,9 +272,7 @@ class AssetDepreciationOptions extends CommonObject } elseif ($field_info['type'] == 'boolean') { $value = ((GETPOST($html_name) == '1' || GETPOST($html_name) == 'on') ? 1 : 0); } elseif ($field_info['type'] == 'reference') { - // todo to check - $tmparraykey = array(); //array_keys($object->param_list); - $value = $tmparraykey[GETPOST($html_name)] . ',' . GETPOST($html_name . '2'); + $value = GETPOST($html_name) . ',' . GETPOST($html_name . '2'); } else { if ($field_key == 'lang') { $value = GETPOST($html_name, 'aZ09') ? GETPOST($html_name, 'aZ09') : "";