From: hickert Date: Wed, 28 Apr 2010 08:59:26 +0000 (+0000) Subject: Fixed copy & paste for the posix flags X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53e6b355ba37cd6ce6058aea1680e9d330090faf;p=gosa.git Fixed copy & paste for the posix flags git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17901 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 30d53500f..8a9defd0e 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -1257,6 +1257,19 @@ class posixAccount extends plugin $this->primaryGroup= $source['gidNumber'][0]; } + + /* Adjust shadow checkboxes */ + foreach (array("shadowMin", "shadowMax", "shadowWarning", "shadowInactive", + "shadowExpire") as $val){ + + if ($this->$val != 0){ + $oval= "activate_".$val; + $this->$oval= "1"; + } + } + + + $tmp = new trustModeDialog($this->config, $source['dn']); $this->trustModeDialog = new trustModeDialog($this->config, $this->dn); $this->trustModeDialog->trustModel = $tmp->trustModel;