mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Changed comparing the action type from translated in presenter to actual value
This commit is contained in:
parent
0ccd7e09de
commit
f21824a8e2
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue