Code

Fixed macro mangement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jan 2010 14:42:52 +0000 (14:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jan 2010 14:42:52 +0000 (14:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15005 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc

index ea0ba4513ea2deb6e5c0892e83e64b20e266dbff..7260fced6b268da1cfccd8cd48b2b08b0ee218bb 100644 (file)
@@ -24,7 +24,7 @@ class goFonMacroManagment extends management
 {
   var $plHeadline     = "Macros";
   var $plDescription  = "Macro management";
-  var $plIcon  = "plugins/gofon/images/macro.png";
+  var $plIcon  = "plugins/gofon/images/macros.png";
 
   // Tab definition 
   protected $tabClass = "macrotabs";
@@ -37,16 +37,16 @@ class goFonMacroManagment extends management
   {
     $this->config = $config;
     $this->ui = $ui;
-   
+
     $this->storagePoints = array(get_ou("phoneMacroRDN"));
+
     // Build filter
-#    if (session::global_is_set(get_class($this)."_filter")){
#     $filter= session::global_get(get_class($this)."_filter");
-  #  } else {
+    if (session::global_is_set(get_class($this)."_filter")){
+      $filter= session::global_get(get_class($this)."_filter");
+    } else {
       $filter = new filter(get_template_path("macro-filter.xml", true));
       $filter->setObjectStorage($this->storagePoints);
-   # }
+    }
     $this->setFilter($filter);
 
     // Build headpage