Merge pull request #33084 from rycks/18.0_fix_change_deposit_conditions_value

set deposit percent to zero on change
This commit is contained in:
Laurent Destailleur 2025-02-19 11:41:28 +01:00 committed by GitHub
commit 54df3c2991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4332,7 +4332,7 @@ class Form
if (depositPercent.length > 0) {
$("#' . $htmlname . '_deposit_percent_container").show().find("#' . $htmlname . '_deposit_percent").val(depositPercent);
} else {
$("#' . $htmlname . '_deposit_percent_container").hide();
$("#' . $htmlname . '_deposit_percent_container").hide().find("#' . $htmlname . '_deposit_percent").val(0);
}
return true;