summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a9d65d)
raw | patch | inline | side by side (parent: 2a9d65d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Mar 2008 14:37:12 +0000 (14:37 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Mar 2008 14:37:12 +0000 (14:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9598 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc
index 142ebdd5e1fa57cf804c6130e5c879856872418e..cf204b3d9fface4c9886c41fcea321e82cbb095d 100644 (file)
function must_be_tagged()
{
+echo 3;
return $this->must_be_tagged;
}
/* Fix entry if needed */
if ($fix){
+echo "1";
if($OnlySetTagFlag){
+echo "2";
$this->must_be_tagged =true;
return;
}
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index 1d040e2688bbede3441f04b34278b618bd27b7f5..ecf1e0989dcbaf098d3717c179d89273b216e87b 100644 (file)
/* Save, or display error message? */
if (count($message) == 0){
+ global $config;
$this->deptabs->save(true);
- global $config;
$config->get_departments();
$config->make_idepartments();
$this->config = $config;
$display= $this->deptabs->execute();
if (!$this->deptabs->by_object[$this->deptabs->current]->dialog){
$display.= "<p style=\"text-align:right\">\n";
- $display.= "<input type=submit name=\"edit_finish\" value=\""._("Save")."\">\n";
+ $display.= "<input type=submit name=\"edit_finish\" value=\"".msgPool::okButton()."\">\n";
$display.= " \n";
- $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+ $display.= "<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">\n";
$display.= "</p>";
}
return ($display);
diff --git a/gosa-core/plugins/admin/departments/tabs_department.inc b/gosa-core/plugins/admin/departments/tabs_department.inc
index ef0360892321b3a3dd74649c1b7701cbe3e14acd..235f3212d9bde13c853269346624dd554ec2b261 100644 (file)
function save($ignore_account= FALSE)
{
- $baseobject= $this->by_object['department'];
+ $baseobject= &$this->by_object['department'];
$ou= preg_replace('/,/', '\,', $baseobject->ou);
$new_dn= @LDAP::convert('ou='.$ou.','.$baseobject->base);
}else{
/* Prepare to be moved */
$baseobject->recursive_move($this->dn, $new_dn);
- $this->by_object['department'] = $baseobject;
return;
}
}
}
$this->dn= $new_dn;
$baseobject->dn= $this->dn;
- $this->by_object['department']= $baseobject;
if (!$ignore_account){
tabs::save(TRUE);
}