From bfe3bb696c37581a71c65c64b1e63d50e54dd46f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Jan 2007 04:10:43 +0000 Subject: [PATCH] Added description to macro list git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5495 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/macro/class_divListMacros.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/gofon/macro/class_divListMacros.inc b/plugins/gofon/macro/class_divListMacros.inc index 3d14404e1..99c40678f 100755 --- a/plugins/gofon/macro/class_divListMacros.inc +++ b/plugins/gofon/macro/class_divListMacros.inc @@ -104,6 +104,16 @@ class divListMacro extends MultiSelectWindow foreach($list as $key => $val){ $display= $val["displayName"][0]; + if(isset($val['description'][0])){ + + $desc = $val['description'][0]; + if(strlen($desc) > 55){ + $desc = substr($desc,0,52)."..."; + } + + $display .= " [".$desc."]"; + } + if(isset($val['goFonMacroVisible']['0'])&&($val['goFonMacroVisible']['0'] == "1")){ $pic1 = $visible; }else{ -- 2.30.2