1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Set credit/debit reason non mandatory

This commit is contained in:
Yohann D'ANELLO 2020-10-07 09:45:09 +02:00
parent c61bb2e90d
commit 18a8ff1b8a

View File

@ -250,7 +250,7 @@ $('#btn_transfer').click(function () {
error = true error = true
} }
if (!reason_field.val()) { if (!reason_field.val() && $('#type_transfer').is(':checked')) {
reason_field.addClass('is-invalid') reason_field.addClass('is-invalid')
$('#reason-required').html('<strong>Ce champ est requis.</strong>') $('#reason-required').html('<strong>Ce champ est requis.</strong>')
error = true error = true