Explorar o código

fixed cloning rules

= %!s(int64=3) %!d(string=hai) anos
pai
achega
4b4322d759
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      resources/views/app/patient/notes.blade.php

+ 1 - 1
resources/views/app/patient/notes.blade.php

@@ -240,7 +240,7 @@
                 <td>
                 <td>
                     <div class="d-flex align-items-center">
                     <div class="d-flex align-items-center">
                         <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
                         <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
-                        @if(1 || $note->new_or_fu_or_na !== 'NEW')
+                        @if($note->visitTemplate->internal_name == 'omega_soap_visit' &&  $note->new_or_fu_or_na !== 'NEW')
                             <span class="px-2 text-secondary">|</span>
                             <span class="px-2 text-secondary">|</span>
                             @if(!$note->visit_template_id)
                             @if(!$note->visit_template_id)
                                 <a href="#" class="text-primary trigger-clone" data-uid="{{$note->uid}}">Clone</a>
                                 <a href="#" class="text-primary trigger-clone" data-uid="{{$note->uid}}">Clone</a>