瀏覽代碼

Show last review/plan if rel fix

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

+ 1 - 1
resources/views/app/patient/module-specific-summary-renderers/nutrition/plan.blade.php

@@ -30,7 +30,7 @@
                     </td>
                     <td class="width-300px">
                         <div class="pl-3">
-                            <?php $plan = $point->childPlanAddedInNote($note); ?>
+                            <?php $plan = $point->lastChildPlan ?: null; ?>
                             <?php if(!!$plan): ?>
                                 <?php
                                 $flat = true;

+ 1 - 1
resources/views/app/patient/module-specific-summary-renderers/nutrition/subjective.blade.php

@@ -30,7 +30,7 @@
                     </td>
                     <td class="width-300px">
                         <div class="pl-3">
-                            <?php $review = $point->childReviewAddedInNote($note); ?>
+                            <?php $review = $point->lastChildReview ?: null; ?>
                             <?php if(!!$review): ?>
                                 <?php
                                 $flat = true;