소스 검색

Visit UI - problem review (include) fix

Vijayakrishnan 3 년 전
부모
커밋
f99611471e

+ 1 - 1
resources/views/app/patient/segment-templates/_child_review/last-review.php

@@ -1,6 +1,6 @@
 <?php if ($point->lastChildReview): ?>
     <?php $parsedReview = json_decode($point->lastChildReview->data); ?>
-    <div><?= $parsedReview->value ?></div>
+    <div><?= @$parsedReview->value ?></div>
     <div class="text-secondary text-sm"></div>
     <?php if ($point->last_child_review_point_scoped_note_id === $note->id): ?>
         <span class="text-secondary text-sm">(reviewed on this note)</span>

+ 1 - 1
resources/views/app/patient/segment-templates/intake_problems/edit.blade.php

@@ -49,7 +49,7 @@ $problems = Point::getIntakePointsOfCategory($patient, 'PROBLEM', $note);
                         <div class="flex-grow-1">
                             <?php
                             $point = $problem;
-                            include resource_path('views/app/patient/segment-templates/_child_review/last-review.php');
+                            include resource_path('views/app/patient/segment-templates/_review/problem/last-review.php');
                             ?>
                         </div>
                         <a class="px-2 view-review-log"