|
@@ -8381,7 +8381,7 @@ abstract class CommonObject
|
|
|
$entrepotObj = new Entrepot($this->db);
|
|
$entrepotObj = new Entrepot($this->db);
|
|
|
$entrepotObj->fetch($_REQUEST['inventory_id']);
|
|
$entrepotObj->fetch($_REQUEST['inventory_id']);
|
|
|
if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
|
|
if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
|
|
|
- $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -2, 2, true);
|
|
|
|
|
|
|
+ $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -4, 4, true);
|
|
|
}else{
|
|
}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, 4, true);
|
|
|
}
|
|
}
|
|
@@ -8410,7 +8410,7 @@ abstract class CommonObject
|
|
|
$entrepotObj = new Entrepot($this->db);
|
|
$entrepotObj = new Entrepot($this->db);
|
|
|
$entrepotObj->fetch($_REQUEST['inventory_id']);
|
|
$entrepotObj->fetch($_REQUEST['inventory_id']);
|
|
|
if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
|
|
if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
|
|
|
- $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -2, 2, true);
|
|
|
|
|
|
|
+ $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -4, 4, true);
|
|
|
}else{
|
|
}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, 4, true); }
|
|
|
$out .= $extrafields->showInputField($key, $value, '', $keysuffix, '', 0, $this->id, $this->table_element);
|
|
$out .= $extrafields->showInputField($key, $value, '', $keysuffix, '', 0, $this->id, $this->table_element);
|