From f21824a8e2cd692ce91b6c0bf3f502aff7f0df80 Mon Sep 17 00:00:00 2001 From: mikeroq Date: Tue, 12 Jul 2022 17:59:03 -0500 Subject: [PATCH] Changed comparing the action type from translated in presenter to actual value --- app/Http/Transformers/ActionlogsTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Transformers/ActionlogsTransformer.php b/app/Http/Transformers/ActionlogsTransformer.php index 5a7c472003..5e0fc917e2 100644 --- a/app/Http/Transformers/ActionlogsTransformer.php +++ b/app/Http/Transformers/ActionlogsTransformer.php @@ -57,7 +57,7 @@ class ActionlogsTransformer $file_url = ''; if($actionlog->filename!='') { - if ($actionlog->present()->actionType() == 'accepted') { + if ($actionlog->action_type == 'accepted') { $file_url = route('log.storedeula.download', ['filename' => $actionlog->filename]); } else { if ($actionlog->itemType() == 'asset') {