浏览代码

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

Vijayakrishnan 3 年之前
父节点
当前提交
b082ab74f0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      resources/views/app/patient/wizard-partials/common-script.blade.php

+ 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;