From a666da0adc5f024d0ec81d9ef14f6e82c40e3219 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Apr 2010 13:38:02 +0000 Subject: [PATCH] Fixed some minor stuff for fax reports git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17469 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/gofax/faxreports/class_faxreport.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc index 511d15420..d3a28adfc 100644 --- a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc +++ b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc @@ -4,7 +4,7 @@ class faxreport extends plugin { /* Definitions */ var $plHeadline = "FAX Reports"; - var $plDescription = "This does something"; + var $plDescription = "This plugin lists fax reports"; var $plIcon = "plugins/gofax/images/reports.png"; /* For internal use */ @@ -17,7 +17,7 @@ class faxreport extends plugin var $sort_direction = "down"; var $ui = NULL; var $range = 20; - var $view_logged = FALSE; + var $view_logged = FALSE; /* Constant stuff */ var $status= array( "SENT", "MAILED", "SERROR", "RERROR", "SBLOCK", "RBLOCK", @@ -27,8 +27,9 @@ class faxreport extends plugin var $fields= array("uid", "queuing_time", "status", "sender_id", "receiver_id", "pages"); /* these vars will be stored in session to be able to remember last search config */ - var $attributes_SO= array("search_for","search_base","month","year", + var $attributes_SO= array("search_for","month","year", "start","year","month","sort","sort_direction","range"); + var $objectclasses= array(); var $fax_users = array(); @@ -173,7 +174,7 @@ class faxreport extends plugin // Get dn to check ACLs for // Existing ldap-user -> use its dn // Not existing user -> use ldap base dn - $dn = $this->config->current['BASE']; + $dn = $this->search_base; if(isset($this->uidToDN[$line['uid']])){ $dn = $this->uidToDN[$line['uid']]; } @@ -295,7 +296,7 @@ class faxreport extends plugin // Get dn to check ACLs for // Existing ldap-user -> use its dn // Not existing user -> use ldap base dn - $dn = $this->config->current['BASE']; + $dn = $this->search_base; if(isset($this->uidToDN[$line['uid']])){ $dn = $this->uidToDN[$line['uid']]; } @@ -412,7 +413,7 @@ class faxreport extends plugin $this->sort= 0; } } - foreach( array("year", "month", "search_for", "search_base") as $type){ + foreach( array("year", "month", "search_for") as $type){ if (isset($_POST[$type])){ $faxreportfilter[$type]= $_POST[$type]; -- 2.30.2