diff --git a/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php b/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php index 2e7b92ba..747695e4 100644 --- a/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php +++ b/resources/views/form/rapport-titans/1781675090-edd1642b-8b21-4db0-a5b9-979efe4483fc.blade.php @@ -430,19 +430,19 @@ let hasValue = false; brandFields.forEach(function(field) { - if ((parseInt($(field).val()) || 0) > 0) { + if ((parseInt($(field).val()) || 0) >= 0) { hasValue = true; } }); - if (!hasValue) { + /* if (!hasValue) { Swal.fire({ icon: 'error', title: 'Validation Error', text: 'From all brands, at least one field should be greater than 0.' }); return false; - } + } */ const formData = new FormData($('#report-form')[0]); // Log form data to console for (let [key, value] of formData.entries()) {