瀏覽代碼

Client dashboard 500 fix (due to GS to TL conv)

Vijayakrishnan 3 年之前
父節點
當前提交
c961554576

+ 2 - 0
resources/views/app/patient/segment-templates/history_family/edit.blade.php

@@ -63,6 +63,8 @@ if(!$contentData) {
                     {{!$segment ? 'hook=onHxPopupClosure' : ''}}>
             @if(!!@$segment)
                 <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+            @else
+                <input type="hidden" name="segmentUid" value="<?= $note->coreSegment->uid ?>">
             @endif
             <input type="hidden" name="uid" value="<?= $point->uid ?>">
             <input type="hidden" name="noteUid" value="<?= $note->uid ?>">

+ 2 - 0
resources/views/app/patient/segment-templates/history_social/edit.blade.php

@@ -71,6 +71,8 @@ for ($i = 0; $i < count($fields); $i++) {
                 {{!$segment ? 'hook=onHxPopupClosure' : ''}}>
             @if(!!@$segment)
                 <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+            @else
+                <input type="hidden" name="segmentUid" value="<?= $note->coreSegment->uid ?>">
             @endif
             <input type="hidden" name="uid" value="<?= $point->uid ?>">
             <input type="hidden" name="noteUid" value="<?= $note->uid ?>">

+ 2 - 0
resources/views/app/patient/segment-templates/history_surgical/edit.blade.php

@@ -68,6 +68,8 @@ for ($i = 0; $i < count($fields); $i++) {
                 {{!$segment ? 'hook=onHxPopupClosure' : ''}}>
             @if(!!@$segment)
                 <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+            @else
+                <input type="hidden" name="segmentUid" value="<?= $note->coreSegment->uid ?>">
             @endif
             <input type="hidden" name="uid" value="<?= $point->uid ?>">
             <input type="hidden" name="noteUid" value="<?= $note->uid ?>">

+ 2 - 0
resources/views/app/patient/segment-templates/past_medical_history/edit.blade.php

@@ -82,6 +82,8 @@ for ($i = 0; $i < count($fields); $i++) {
                 {{!$segment ? 'hook=onHxPopupClosure' : ''}}>
             @if(!!@$segment)
                 <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
+            @else
+                <input type="hidden" name="segmentUid" value="<?= $note->coreSegment->uid ?>">
             @endif
             <input type="hidden" name="uid" value="<?= $point->uid ?>">
             <input type="hidden" name="noteUid" value="<?= $note->uid ?>">