mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
One more fix for custom reports
This commit is contained in:
parent
936ff707c7
commit
a9d9234fb3
|
@ -596,10 +596,15 @@ class ReportsController extends Controller
|
||||||
if (e(Input::get('employee_num')) == '1') {
|
if (e(Input::get('employee_num')) == '1') {
|
||||||
// Only works if we're checked out to a user, not anything else.
|
// Only works if we're checked out to a user, not anything else.
|
||||||
if ($asset->checkedOutToUser()) {
|
if ($asset->checkedOutToUser()) {
|
||||||
|
if ($asset->assignedto) {
|
||||||
$row[] = '"' .e($asset->assignedto->employee_num). '"';
|
$row[] = '"' .e($asset->assignedto->employee_num). '"';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$row[] = ''; // Empty string if unassigned
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e(Input::get('status')) == '1') {
|
if (e(Input::get('status')) == '1') {
|
||||||
|
|
Loading…
Reference in a new issue