Procházet zdrojové kódy

rx wiz add: bug fix "additionReasonCategory" cannot be empty

Vijayakrishnan před 3 roky
rodič
revize
b082ab74f0

+ 4 - 0
resources/views/app/patient/wizard-partials/common-script.blade.php

@@ -75,6 +75,10 @@ parentSegment.find('#frm-add-{{$label}}')
             return false;
         }
 
+        if(!form.find('[name="additionReasonCategory"]:checked').length) {
+            form.find('[name="additionReasonCategory"][value="ON_INTAKE"]').prop('checked', true);
+        }
+
         // add [data-name] values to payload
         let dataField = form.find('[name="data"]').first();
         let parsed = null;