Merge pull request #14243 from snipe/fixes/reports_controller_when_item_is_deleted
Fixed ReportsController to not try to return a serial if the item doesn’t exist
This commit is contained in:
commit
c12e1f6d6c
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ class ReportsController extends Controller
|
||||||
$actionlog->present()->actionType(),
|
$actionlog->present()->actionType(),
|
||||||
e($actionlog->itemType()),
|
e($actionlog->itemType()),
|
||||||
($actionlog->itemType() == 'user') ? $actionlog->filename : $item_name,
|
($actionlog->itemType() == 'user') ? $actionlog->filename : $item_name,
|
||||||
($actionlog->item->serial) ? $actionlog->item->serial : null,
|
($actionlog->item) ? $actionlog->item->serial : null,
|
||||||
($actionlog->item->model) ? htmlspecialchars($actionlog->item->model->name, ENT_NOQUOTES) : null,
|
($actionlog->item->model) ? htmlspecialchars($actionlog->item->model->name, ENT_NOQUOTES) : null,
|
||||||
($actionlog->item->model) ? $actionlog->item->model->model_number : null,
|
($actionlog->item->model) ? $actionlog->item->model->model_number : null,
|
||||||
$target_name,
|
$target_name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue