Selaa lähdekoodia

compound pdf

master
Siti Rahayu 5 vuotta sitten
vanhempi
commit
83ac6caf67
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      app/Http/Controllers/Main/TaskController.php

+ 5
- 0
app/Http/Controllers/Main/TaskController.php Näytä tiedosto

@@ -169,6 +169,11 @@ class TaskController extends Controller
$site = SiteSetting::first();
$compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd', $kpd)->first();
if(empty($compound))
{
$kpd = (int)$kpd;
$compound = Compound::with('ConfidentialFile','Attachment','CompoundInvestigation')->where('kpd', $kpd)->first();
}
$file = ConfidentialFile::with(['Memo' => function($q){
$q->orderBy('updated_at','ASC');
}],['Investigation' => function($q){

Loading…
Peruuta
Tallenna