소스 검색

Admin: Notes pending sign - query fix + link from dashboard

Vijayakrishnan 3 년 전
부모
커밋
e447728766
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/PracticeManagementController.php

+ 1 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -378,7 +378,7 @@ OFFSET {$offset} LIMIT {$perPage}
     public function notes(Request $request, $filter = '')
     {
         $proID = $this->performer()->pro->id;
-        $query = Note::where('is_cancelled', FALSE);
+        $query = Note::where('is_cancelled', FALSE)->where('is_core_note', '<>', true);
         if ($this->performer()->pro->pro_type !== 'ADMIN') {
             $query = $query->where('hcp_pro_id', $proID);
         }