From: hickert Date: Thu, 9 Nov 2006 10:42:37 +0000 (+0000) Subject: Fixed sambaPwdCanChange checkbox selection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47280e6870869544f695d4eacf3942e8f6f8ba0e;p=gosa.git Fixed sambaPwdCanChange checkbox selection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5061 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index c6de16a51..a03d61c23 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -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");