|
|
@@ -7544,7 +7544,7 @@ abstract class CommonObject
|
|
|
$value = $this->getNomUrl(1, '', 0, '', 1);
|
|
|
}
|
|
|
} elseif ($key == 'status' && method_exists($this, 'getLibStatut')) {
|
|
|
- $value = $this->getLibStatut(3);
|
|
|
+ $value = $this->getLibStatut(2);
|
|
|
} elseif ($type == 'date') {
|
|
|
if (!empty($value)) {
|
|
|
$value = dol_print_date($value, 'day'); // We suppose dates without time are always gmt (storage of course + output)
|
|
|
@@ -8381,9 +8381,9 @@ abstract class CommonObject
|
|
|
$entrepotObj = new Entrepot($this->db);
|
|
|
$entrepotObj->fetch($_REQUEST['inventory_id']);
|
|
|
if ($entrepotObj->array_options['options_entrepot_type'] == 1) {
|
|
|
- $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -2);
|
|
|
+ $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], -2, true);
|
|
|
}else{
|
|
|
- $extrafields->attributes['inventory']['param'][$key]['options'] = array_slice($extrafields->attributes['inventory']['param'][$key]['options'], 0, 4);
|
|
|
+ $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);
|
|
|
} else {
|