Explorar el Código

device_type update

szollosil hace 9 meses
padre
commit
6db81c301f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/class/commonobject.class.php

+ 2 - 2
core/class/commonobject.class.php

@@ -8383,7 +8383,7 @@ abstract class CommonObject
 									if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
 										$extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -4, 4, true);
 									}else{
-										$extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], 0, 4, true);
+										$extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], 0, 5, true);
 									}
 									$out .= $extrafields->showInputField($key, $value, '', $keysuffix, '', 0, $this->id, $this->table_element);
 								} else {
@@ -8412,7 +8412,7 @@ abstract class CommonObject
 									if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
 										$extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -4, 4, true);
 									}else{
-										$extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], 0, 4, true);									}
+										$extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], 0, 5, true);									}
 									$out .= $extrafields->showInputField($key, $value, '', $keysuffix, '', 0, $this->id, $this->table_element);
 								} else {
 									$out .= $extrafields->showInputField($key, $value, '', $keysuffix, '', 0, $this->id, $this->table_element);