Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(agent): description for mdm types
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r committed Jul 10, 2018
1 parent 1cfb807 commit dce5dcd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/agent.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ public function getSearchOptionsNew() {
'table' => $this->getTable(),
'field' => 'mdm_type',
'name' => __('MDM type', 'flyvemdm'),
'datatype' => 'bool',
'datatype' => 'specific',
'massiveaction' => false
];

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit dce5dcd

Please sign in to comment.