summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8905c24)
raw | patch | inline | side by side (parent: 8905c24)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Oct 2007 12:56:57 +0000 (12:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Oct 2007 12:56:57 +0000 (12:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7585 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_tabs.inc | patch | blob | history | |
plugins/admin/users/tabs_user.inc | patch | blob | history | |
plugins/personal/generic/class_user.inc | patch | blob | history |
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index c7be1b78462ceddbb2109e8db8c5609e1a66559b..036d42d42e2153562092da86756f0e8b9fd47ed5 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
$this->multiple_entries = TRUE;
}
-
foreach ($data as &$tab){
/* Check we want to handle multiple obejcts at once
function save($ignore_account= FALSE)
{
- /* Save all plugins */
- foreach ($this->by_object as $key => &$obj){
- @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
- $key, "Saving");
+ if($this->multiple_entries){
+ echo "Save is not supported for multiple entries yet";
- $obj->dn= $this->dn;
+ }else{
+ /* Save all plugins */
+ foreach ($this->by_object as $key => &$obj){
+ @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
+ $key, "Saving");
- if ($obj->is_account || $ignore_account || $obj->ignore_account){
- if ($obj->save() == 1){
- return (1);
+ $obj->dn= $this->dn;
+
+ if ($obj->is_account || $ignore_account || $obj->ignore_account){
+ if ($obj->save() == 1){
+ return (1);
+ }
+ } else {
+ $obj->remove_from_parent();
}
- } else {
- $obj->remove_from_parent();
}
}
return (0);
function addSpecialTabs()
{
- if(!is_array($this->dn)){
+ if(!$this->multiple_entries){
$this->by_name['acl']= _("ACL");
$this->by_object['acl']= new acl($this->config, $this, $this->dn);
$this->by_object['acl']->parent= &$this;
index b67882fa0cabb76ba67383b5b21e2d36fb79a3a8..97c60aa1ba896d661ac94578dc66de51980fdff9 100644 (file)
function save($ignore_account= FALSE)
{
- /* Check for new 'dn', in order to propagate the
- 'dn' to all plugins */
- $baseobject= $this->by_object['user'];
+ if(!$this->multiple_entries){
- if ($this->dn != 'new'){
-
- $new_dn= $baseobject->new_dn;
- if (strtolower($this->dn) != strtolower($new_dn)){
+ /* Check for new 'dn', in order to propagate the
+ 'dn' to all plugins */
+ $baseobject= $this->by_object['user'];
+
+ if ($this->dn != 'new'){
+
+ $new_dn= $baseobject->new_dn;
+ if (strtolower($this->dn) != strtolower($new_dn)){
- /* Udpate acls */
- $baseobject->update_acls($this->dn,$new_dn);
- $baseobject->move($this->dn, $new_dn);
- $this->by_object['user']= $baseobject;
+ /* Udpate acls */
+ $baseobject->update_acls($this->dn,$new_dn);
+ $baseobject->move($this->dn, $new_dn);
+ $this->by_object['user']= $baseobject;
- /* Did we change ourselves? Update ui object. */
- change_ui_dn($this->dn, $new_dn);
+ /* Did we change ourselves? Update ui object. */
+ change_ui_dn($this->dn, $new_dn);
+ }
}
- }
- $this->dn= $baseobject->new_dn;
+ $this->dn= $baseobject->new_dn;
+ }
return tabs::save();
}
index 4cec1ec537285b1e79129c5590825e66588ce6dc..bfd6bd462344fa05948a0664ff7081f006122ea9 100644 (file)
/* variables to trigger password changes */
var $pw_storage= "crypt";
- var $last_pw_storage= "unset";
+ var $last_pw_storage= "crypt";
var $had_userCertificate= FALSE;
var $view_logged = FALSE;