#12767 Fixed password 3

This commit is contained in:
Daniel Maya 2024-01-22 17:29:51 +01:00
parent a41d2214e6
commit 6948306d82

View File

@ -2728,7 +2728,7 @@ function html_print_input_text_extended(
if ($hide_div_eye !== false) {
echo "<script>
$(document).ready (function () {
$('input[name=\"".$name."\"]').val(\"".$value."\")
$('input[name=\"".$name."\"]').val(\"".$value."\");
observerInputPassword('".$name."');
});
@ -2746,9 +2746,11 @@ function html_print_input_text_extended(
];
foreach ($attrs as $attribute => $default) {
if (array_key_exists($attribute, $attributes)) {
if (array_key_exists($attribute, $attributes)
|| ($password === true && $attribute === 'value')
) {
continue;
} //end if
}
/*
* Remember, this next code have a $$ that for example there is a var as
@ -2758,7 +2760,7 @@ function html_print_input_text_extended(
*
*/
// Exact operator because we want to show "0" on the value
// Exact operator because we want to show "0" on the value.
if ($attribute !== '') {
$output .= $attribute.'="'.$$attribute.'" ';
} else if ($default != '') {
@ -2789,6 +2791,12 @@ function html_print_input_text_extended(
],
true
);
echo "<script>
$(document).ready (function () {
$('input[name=\"".$name."\"]').val(\"".$value.'");
});
</script>';
}
if (!$return) {