From: hickert Date: Thu, 16 Sep 2010 12:26:52 +0000 (+0000) Subject: Updated device handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=04203b734edb23510f41234a1bfee63615c0c1e3;p=gosa.git Updated device handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19707 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Device/Device.tpl b/gosa-plugins/goto/admin/systems/goto/Device/Device.tpl index d07dfeecf..486b38909 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/Device.tpl +++ b/gosa-plugins/goto/admin/systems/goto/Device/Device.tpl @@ -43,7 +43,7 @@ + title="{$owner}" disabled style="width:120px;"> {image path="images/lists/edit.png" action="editOwner" acl=$ownerACL} {if $owner!=""} @@ -61,7 +61,7 @@ + title="{$manager}" disabled style="width:120px;"> {image path="images/lists/edit.png" action="editManager" acl=$managerACL} {if $manager!=""} @@ -72,7 +72,10 @@ - + + + {image path="images/lists/reload.png" action="reloadUUID"} + diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc index f336a2738..3c8634267 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_Device.inc @@ -40,6 +40,15 @@ class Device extends plugin $this->orig_dn = $this->dn; } + + function genFakeUuid() + { + $strfmt = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; + for($i=0;$idialog instanceOf singleUserSelect) return($this->dialog->execute()); - $smarty = get_smarty(); // Assign ACL settings @@ -120,7 +128,8 @@ class Device extends plugin if(isset($_POST['add_users_cancel'])){ $this->dialog = NULL; } - + + if(isset($_POST['reloadUUID'])) $this->deviceUUID = $this->genFakeUuid(); }