From c07322de0fd9106ec9b78f1318569b8f3cc3d261 Mon Sep 17 00:00:00 2001 From: mySeb Date: Sun, 1 Apr 2012 12:36:30 +0000 Subject: [PATCH] fixed issue-1046 --- lib/formfields/admin/customer/formfield.customer_add.php | 4 +++- lib/formfields/admin/customer/formfield.customer_edit.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php index 550ba965..72749452 100644 --- a/lib/formfields/admin/customer/formfield.customer_add.php +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -252,7 +252,9 @@ return array( 'backup_allowed' => array( 'label' => $lng['backup_allowed'].'?', 'type' => 'yesno', - 'yesno_var' => $backup_allowed + 'value' => 0, + 'yesno_var' => $backup_allowed, + 'visible' => ($settings['system']['backup_enabled'] == '1' ? true : false) ), 'number_of_aps_packages' => array( 'label' => $lng['aps']['numberofapspackages'], diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php index 9faf14f1..346c397d 100644 --- a/lib/formfields/admin/customer/formfield.customer_edit.php +++ b/lib/formfields/admin/customer/formfield.customer_edit.php @@ -261,7 +261,9 @@ return array( 'backup_allowed' => array( 'label' => $lng['backup_allowed'].'?', 'type' => 'yesno', - 'yesno_var' => $backup_allowed + 'value' => 0, + 'yesno_var' => $backup_allowed, + 'visible' => ($settings['system']['backup_enabled'] == '1' ? true : false) ), 'number_of_aps_packages' => array( 'label' => $lng['aps']['numberofapspackages'],