static function getSpecificValueToSelect($field, $name = '', $values = '', array $options = array())
{
if (!is_array($values)) {
$values = array($field => $values);
}
$options['display'] = false;
switch ($field) {
case 'items_id':
if (isset($values['itemtype']) && !empty($values['itemtype'])) {
$options['name'] = $name;
$options['value'] = $values[$field];
return Dropdown::show($values['itemtype'], $options);
} else {
self::dropdownAllDevices($name, 0, 0);
return ' ';
}
break;
}
return parent::getSpecificValueToSelect($field, $name, $values, $options);
}