Code

Fixed sambaPwdCanChange checkbox selection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Nov 2006 10:42:37 +0000 (10:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Nov 2006 10:42:37 +0000 (10:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5061 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/samba/class_sambaAccount.inc

index c6de16a518f5ae9a2dc307f5dc9f0ca1015815ea..a03d61c23e85844a6aa97acc6036f9ac7be0c8cb 100644 (file)
@@ -553,10 +553,18 @@ class sambaAccount extends plugin
     }
 
     /* 'normal' Checkboxes */
-    if ($this->pwdCanChange=="1"){
-      $smarty->assign("flagsP", "checked");
-    } else {
-      $smarty->assign("flagsP", "");
+    if($this->samba3){
+      if ($this->sambaPwdCanChange=="1"){
+        $smarty->assign("flagsP", "checked");
+      } else {
+        $smarty->assign("flagsP", "");
+      }
+    }else{
+      if ($this->pwdCanChange=="1"){
+        $smarty->assign("flagsP", "checked");
+      } else {
+        $smarty->assign("flagsP", "");
+      }
     }
     if ($this->password_expires=="1"){
       $smarty->assign("flagsC", "checked");