diff --git a/inc/agent.class.php b/inc/agent.class.php index 83241872..946fd367 100644 --- a/inc/agent.class.php +++ b/inc/agent.class.php @@ -823,7 +823,7 @@ public function getSearchOptionsNew() { 'table' => $this->getTable(), 'field' => 'mdm_type', 'name' => __('MDM type', 'flyvemdm'), - 'datatype' => 'bool', + 'datatype' => 'specific', 'massiveaction' => false ]; @@ -1986,6 +1986,12 @@ public static function getSpecificValueToDisplay($field, $values, array $options return $output; } break; + case 'mdm_type': + if (!isAPI()) { + $enumtypes = self::getEnumMdmType(); + return $enumtypes[$values[$field]]; + } + break; } return parent::getSpecificValueToDisplay($field, $values, $options); }