diff --git a/install/updates/froxlor/0.9/update_0.9.inc.php b/install/updates/froxlor/0.9/update_0.9.inc.php index 81cf8b8e..77ac58e3 100644 --- a/install/updates/froxlor/0.9/update_0.9.inc.php +++ b/install/updates/froxlor/0.9/update_0.9.inc.php @@ -3912,4 +3912,3 @@ if (isDatabaseVersion('201801260')) { updateToDbVersion('201802120'); } - diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php index c123f161..bba95e12 100644 --- a/lib/formfields/admin/customer/formfield.customer_add.php +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -302,9 +302,9 @@ return array( 'values' => $phpconfigs, 'value' => ((int) Settings::Get('system.mod_fcgid') == 1 ? array( Settings::Get('system.mod_fcgid_defaultini') - ) : (int) Settings::Get('phpfpm.enabled') == 1) ? array( + ) : (int) Settings::Get('phpfpm.enabled') == 1 ? array( Settings::Get('phpfpm.defaultini') - ) : array(), + ) : array()), 'is_array' => 1 ), 'perlenabled' => array( diff --git a/templates/Sparkle/assets/js/customers.js b/templates/Sparkle/assets/js/customers.js index 04c7ee89..7863f345 100644 --- a/templates/Sparkle/assets/js/customers.js +++ b/templates/Sparkle/assets/js/customers.js @@ -34,17 +34,18 @@ $(document).ready(function() { if (i == 'email_imap' || i == 'email_pop3' || i == 'perlenabled' || i == 'phpenabled' || i == 'dnsenabled') { /** handle checkboxes **/ if (json[i] == 1) { - $("input[name='"+i+"']").attr('checked', 'checked'); + $("input[name='"+i+"']").prop('checked', true); } else { - $("input[name='"+i+"']").removeAttr('checked'); + $("input[name='"+i+"']").prop('checked', false); } } else if (i == 'allowed_phpconfigs') { /** handle array of values **/ $("input[name='allowed_phpconfigs[]']").each(function(index) { - $(this).removeAttr('checked'); + $(this).prop('checked', false); for (j in json[i]) { if ($(this).val() == json[i][j]) { - $(this).attr('checked', 'checked'); + $(this).prop('checked', true); + break; } } }); @@ -60,7 +61,7 @@ $(document).ready(function() { $("input[name='"+i+"']").prop({ readonly: false }); - $("input[name='" + i + "_ul']").removeAttr('checked'); + $("input[name='" + i + "_ul']").prop('checked', false); } } },