summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8457d86)
raw | patch | inline | side by side (parent: 8457d86)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Nov 2006 05:50:49 +0000 (05:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Nov 2006 05:50:49 +0000 (05:50 +0000) |
-Home directory wasn't used.
-gid/uidNumber wasn't used.
-goupMembership was not created.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5051 594d385d-05f5-0310-b6e9-bd551577e9d8
-gid/uidNumber wasn't used.
-goupMembership was not created.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5051 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
plugins/personal/posix/paste_generic.tpl | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 1cebfa35b5ded55c8926495fed5ef3b58562bb47..fca536fb9b3e2cf41e9c2c86383ae385b82851c1 100644 (file)
var $SubSearch = false;
/* attribute list for save action */
- var $CopyPasteVars = array("grouplist","groupMembership","use_shadowMin","use_shadowMax","use_shadowWarning","use_shadowInactive","use_shadowExpire","must_change_password","force_ids","printerList","grouplist","savedGidNumber","savedUidNumber","savedGroupMembership");
+ var $CopyPasteVars = array("grouplist","groupMembership","use_shadowMin","use_shadowMax","use_shadowWarning","use_shadowInactive","use_shadowExpire","must_change_password","printerList","grouplist","savedGidNumber","savedUidNumber");
var $attributes = array("homeDirectory", "loginShell", "uidNumber", "gidNumber", "gecos",
"shadowMin", "shadowMax", "shadowWarning", "shadowInactive", "shadowLastChange",
"shadowExpire", "gosaDefaultPrinter", "gosaDefaultLanguage", "uid","accessTo","trustModel");
reset ($this->grouplist);
}
+
+ /* Get posts from copy & paste dialog */
+ function saveCopyDialog()
+ {
+ if(isset($_POST['homeDirectory'])){
+ $this->homeDirectory = $_POST['homeDirectory'];
+ if (isset ($_POST['force_ids'])){
+ $data= 1;
+ $this->gidNumber = $_POST['gidNumber'];
+ $this->uidNumber = $_POST['uidNumber'];
+ } else {
+ $data= 0;
+ }
+ if ($this->force_ids != $data){
+ $this->is_modified= TRUE;
+ }
+ $this->force_ids= $data;
+ }
+ }
+
/* Create the posix dialog part for copy & paste */
function getCopyDialog()
{
- /* Skip dialog creation if this is not a valid account*/
+ /* Skip dialog creation if this is not a valid account */
if(!$this->is_account) return("");
if ($this->force_ids == 1){
$force_ids = "checked";
index f97374c69b54961884944689305ad0764552961e..df91ef880c7bc497bc7fda2008e85df5736e7e6a 100644 (file)
<h2>{t}Posix settings{/t}</h2>
<table width='100%'>
<tr>
- <td style='vertical-align:top; border-right:1px solid #AAA'>
+ <td style='width:50%;vertical-align:top; border-right:1px solid #AAA'>
<table>
<tr>
<td>
</td>
</tr>
</table>
- <table>
+ <table style='width:100%;'>
<tr>
<td>
<input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids}