mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
Merge branch 'develop'
This commit is contained in:
commit
a11d9b84a4
|
@ -582,10 +582,15 @@ class ReportsController extends Controller
|
||||||
if (e(Input::get('username')) == '1') {
|
if (e(Input::get('username')) == '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->username). '"';
|
$row[] = '"' .e($asset->assignedto->username). '"';
|
||||||
} else {
|
} else {
|
||||||
$row[] = ''; // Empty string if unassigned
|
$row[] = ''; // Empty string if unassigned
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$row[] = ''; // Empty string if unassigned
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e(Input::get('employee_num')) == '1') {
|
if (e(Input::get('employee_num')) == '1') {
|
||||||
|
|
Loading…
Reference in a new issue