mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
#9817 fixed input_json_profile hidden in update user
This commit is contained in:
parent
c19b13fd3b
commit
d3136a8be5
@ -1643,13 +1643,18 @@ if ($config['admin_can_add_user']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
if ($new_user === true) {
|
||||||
|
html_print_input_hidden('json_profile', $json_profile);
|
||||||
|
}
|
||||||
|
|
||||||
html_print_input_hidden('json_profile', $json_profile);
|
|
||||||
|
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
|
if ($is_err === true && $new_user === true) {
|
||||||
profile_print_profile_table($id, io_safe_output($json_profile));
|
profile_print_profile_table($id, io_safe_output($json_profile), false, true);
|
||||||
|
} else {
|
||||||
|
profile_print_profile_table($id, io_safe_output($json_profile));
|
||||||
|
}
|
||||||
|
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
|
|
||||||
@ -1869,6 +1874,8 @@ $(document).ready (function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('input:image[name="del"]').click(function (e) {
|
$('input:image[name="del"]').click(function (e) {
|
||||||
|
if($(json_profile).length > 0) return;
|
||||||
|
if (!confirm ('Are you sure?')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var rows = $("#table_profiles tr").length;
|
var rows = $("#table_profiles tr").length;
|
||||||
if (((is_metaconsole === '1' && rows <= 4) || (is_metaconsole === '' && rows <= 3)) && user_is_global_admin !== '1') {
|
if (((is_metaconsole === '1' && rows <= 4) || (is_metaconsole === '' && rows <= 3)) && user_is_global_admin !== '1') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user