summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bac9a3f)
raw | patch | inline | side by side (parent: bac9a3f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Aug 2005 09:07:57 +0000 (09:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Aug 2005 09:07:57 +0000 (09:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1097 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_phonequeue.inc | patch | blob | history |
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index 8e7f227234d01cfedd8a9f00b43482669717052a..37e71613829ecc2a5878c2613d4a7aa2df3a2499 100644 (file)
/* Save initial account state */
$this->initially_was_account= $this->is_account;
- if(isset($this->attrs['telephoneNumber'])){
- $this->telephoneNumber=$this->attrs['telephoneNumber'];
- unset($this->telephoneNumber['count']);
- }
-
+ if($this->is_account){
+ if(isset($this->attrs['telephoneNumber'])){
+ $this->telephoneNumber=$this->attrs['telephoneNumber'];
+ unset($this->telephoneNumber['count']);
+ }
- for($i = 0; $i < strlen($this->goFonDialOption); $i++){
- $name = "goFonDialOption_".$this->goFonDialOption[$i];
- $this->$name=$this->goFonDialOption[$i];
+ for($i = 0; $i < strlen($this->goFonDialOption); $i++){
+ $name = "goFonDialOption_".$this->goFonDialOption[$i];
+ $this->$name=$this->goFonDialOption[$i];
+ }
}
-
+
$this->old_phone_numbers = $this->telephoneNumber;
}
function check()
{
$message= array();
- // if(empty($this->description)){
- // $message[] = _("You must specify a description for this queue");
- // }
if($this->is_number_used()){
$message[] = $this->is_number_used();
return( sprintf(_("Can't select database %s on %s."),$a_SETUP['DB'],$a_SETUP['SERVER']));
}
-
-
if($save){
$i = 0;
$prio = 11;
$this->attrs['cn'][0] = $this->parent->by_object['ogroup']->cn;
}
- if(empty($this->description)){
- $this->description = $this->parent->by_object['ogroup']->description;
- $this->attrs['description'][0] = $this->parent->by_object['ogroup']->description;
- }
-
// Delete old Entries
$delete = array();
if(is_array($this->old_phone_numbers)){
$a_ext[$i]['exten'] = $num;
$a_ext[$i]['priority'] = 4;
$a_ext[$i]['app'] = "SetCIDName";
- $a_ext[$i]['appdata'] = $this->attrs['description'][0];
+ $a_ext[$i]['appdata'] = $this->parent->by_object['ogroup']->description;
$i ++ ;
$a_ext[$i]['context'] = 'GOsa';
$a_ext[$i]['exten'] = $num;
}
$this->generate_mysql_entension_entries(true);
if($this->attrs['goFonDialOption']=="") $this->attrs['goFonDialOption']=array();
-
+
/* Save data to LDAP */
$ldap->cd($this->dn);
$ldap->modify($this->attrs);
$this->attrs['cn'][0] = $this->parent->by_object['ogroup']->cn;
}
- if(empty($this->description)){
- $this->description = $this->parent->by_object['ogroup']->description;
- $this->attrs['description'][0] = $this->parent->by_object['ogroup']->description;
- }
-
// Delete old Entries
$delete = array();
foreach($this->old_phone_numbers as $phone){