Merge pull request #11502 from mikeroq/fixes/eula_download_if_app_locale_is_not_en

Fixes #11496 - Wrong URL generated for download of asset acceptance PDF if locale was not en
This commit is contained in:
snipe 2022-07-12 16:18:59 -07:00 committed by GitHub
commit 5f5ff04636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') {