X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fogroups%2Fclass_phonequeue.inc;h=c0e669b03843521b43eb1c69fa7efeb1018336b1;hb=a04284e85f4373710f6f455fab532c967bf37ded;hp=d10c3c747a58281d89d7002026ed1af54647306b;hpb=dd99ada91794fb653974338223201e09e06ab885;p=gosa.git diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc index d10c3c747..c0e669b03 100644 --- a/plugins/admin/ogroups/class_phonequeue.inc +++ b/plugins/admin/ogroups/class_phonequeue.inc @@ -99,6 +99,9 @@ class phonequeue extends plugin function execute() { + /* Call parent execute */ + plugin::execute(); + /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ $this->is_account= !$this->is_account; @@ -158,7 +161,7 @@ class phonequeue extends plugin $smarty= get_smarty(); - $smarty->assign("goFonQueueLanguageOptions",array('de'=>_('German'),'ur'=>_('Uruguai'))); + $smarty->assign("goFonQueueLanguageOptions",array('de'=>_('German'))); $smarty->assign("goFonQueueStrategyOptions", $this->goFonQueueStrategyOptions); foreach($this->attributes as $key => $val){ @@ -184,9 +187,6 @@ class phonequeue extends plugin function check() { $message= array(); - #fixme workaround : Tab is not initialised correct - if(!$this->is_account) return($message); - if($this->is_number_used()){ $message[] = $this->is_number_used(); } @@ -222,8 +222,7 @@ class phonequeue extends plugin $SQL = array(); if(!isset($_SESSION['config']->data['SERVERS']['FON'])){ - return(_("There is currently no asterisk server defined. Possibly you are missing a server that handles the asterisk management (goFonServer).\nYour Settings can't be saved to asterisk Database.")); - return(false); + return(_("There is currently no asterisk server defined. Your settings can't be saved.")); } // Get Configuration for Mysql database Server @@ -236,7 +235,7 @@ class phonequeue extends plugin // Check if we are connected correctly if(!$r_con){ gosa_log(mysql_error()); - return (sprintf(_("The MySQL Server '%s' isn't reachable as user '%s', check GOsa log for mysql error."), + return (sprintf(_("The MySQL server '%s' isn't reachable as user '%s', check GOsa log for mysql error."), $a_SETUP['SERVER'],$a_SETUP['LOGIN'])); } @@ -580,7 +579,9 @@ class phonequeue extends plugin /* Save data to LDAP */ $ldap->cd($this->dn); - $ldap->modify($this->attrs); + $this->cleanup(); +$ldap->modify ($this->attrs); + show_ldap_error($ldap->get_error()); @@ -676,7 +677,9 @@ class phonequeue extends plugin @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->attributes, "Save"); $ldap->cd($this->dn); - $ldap->modify($this->attrs); + $this->cleanup(); +$ldap->modify ($this->attrs); + show_ldap_error($ldap->get_error()); }