mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
fix getSpecificValueToDisplay proto
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@177 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
1d573b94d3
commit
4b086c9c08
@ -172,9 +172,12 @@ class PluginExampleExample extends CommonDBTM {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static function getSpecificValueToDisplay($field, &$values, $options=array()) {
|
static function getSpecificValueToDisplay($field, $values, $options=array()) {
|
||||||
global $LANG;
|
global $LANG;
|
||||||
|
|
||||||
|
if (!is_array($values)) {
|
||||||
|
$values = array($field => $values);
|
||||||
|
}
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'serial' :
|
case 'serial' :
|
||||||
return "S/N: ".$values[$field];
|
return "S/N: ".$values[$field];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user