summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f14691)
raw | patch | inline | side by side (parent: 0f14691)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Jul 2009 13:51:55 +0000 (13:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Jul 2009 13:51:55 +0000 (13:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13906 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_systemManagement.inc | patch | blob | history | |
gosa-plugins/systems/admin/systems/class_termDNS.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index f177d3ae3f8589307c8756e28fd10a48eb9d5ab1..51e8ba4249a8f8942c64835ebea173b6bb234189 100644 (file)
the target system opened to allow to edit the objects attributes.
*/
- if($this->systab instanceOf ArpNewDeviceTabs && isset($_POST['edit_finish'])){
+ if($this->systab instanceOf ArpNewDeviceTabs &&
+ isset($_POST['edit_finish']) &&
+ $this->systab->by_object['ArpNewDevice']->gotoIntegration ){
+
/* Check tabs, will feed message array */
$message = $this->systab->check();
msg_dialog::displayChecks($message);
}else{
$s_action = "SelectedSystemType";
+ $this->systab->save();
$this->systab = null;
unset($_POST['edit_finish']);
}
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index d904a976f6de9531558b4b53283037a894eccbfe..410b34b3d4fafa40ac0275acc4ac9f480e706278 100644 (file)
$this->dialog = FALSE;
}
- if(isset($_POST['save_dhcp']) && $this->acl_is_writeable("dhcpSetup")){
+ if(isset($_POST['save_dhcp']) && $this->acl_is_writeable("dhcpSetup") && is_object($this->dialog)){
$this->dialog->save_object();
$msgs = $this->dialog->check(array());
if(count($msgs)){
DNS posts
******/
- /* Check if DNS should be enabled / disabled */
- if($this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && !isset($_POST['DNS_is_account'])){
- $this->DNS_is_account = false;
- }elseif(!$this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && isset($_POST['DNS_is_account'])){
- $this->DNS_is_account = true;
+ /* Check if DNS should be enabled / disabled
+ * -skip this, if the dns account is enforced.
+ */
+ if(!$this->hide_dns_check_box){
+ if($this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && !isset($_POST['DNS_is_account'])){
+ $this->DNS_is_account = false;
+ }elseif(!$this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && isset($_POST['DNS_is_account'])){
+ $this->DNS_is_account = true;
+ }
}
/* Get dns attributes */