From dce5dcd7b8f011b25c0d0adf58bf31247bb8a2a6 Mon Sep 17 00:00:00 2001 From: Domingo Oropeza Date: Tue, 10 Jul 2018 09:38:44 -0400 Subject: [PATCH] fix(agent): description for mdm types Signed-off-by: Domingo Oropeza --- inc/agent.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); }