浏览代码

Fix buggy call to getVal() in patient dashboard

Fix buggy call to getVal() in patient dashboard
Vijayakrishnan Krishnan 4 年之前
父节点
当前提交
a951ca8848
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/views/app/patient/dashboard.blade.php

+ 2 - 2
resources/views/app/patient/dashboard.blade.php

@@ -10,7 +10,7 @@
 	<?php
 		function getVal($object, $prop){
 			if(isset($object->$prop)){
-				return $object->prop;
+				return $object->$prop;
 			}else{
 				return '';
 			}
@@ -537,7 +537,7 @@
                                                 <span class="text-secondary mx-1">/</span>
                                                 <span class="text-secondary">{{ getVal($line->contentDetail, "Chronic or Acute") }}</span>
                                                 <span class="text-secondary mx-1">/</span>
-                                                <span class="text-secondary">ICD: {{ getVal($line->contentDetail, "ICD") ? $line->contentDetail("ICD") : '-' }}</span>
+                                                <span class="text-secondary">ICD: {{ getVal($line->contentDetail, "ICD") ? getVal($line->contentDetail, "ICD") : '-' }}</span>
                                             </div>
                                         </td>
                                     </tr>