mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Do not try to return a serial if the item doesn’t exist
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
55b3050ca8
commit
479abd5231
|
@ -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…
Reference in a new issue