mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-19 23:37:38 -07:00
Added default if no audit settings are in place
This commit is contained in:
parent
e10cdd57a5
commit
479f422e68
|
@ -100,7 +100,7 @@ $('.snipe-table').bootstrapTable({
|
||||||
|
|
||||||
|
|
||||||
function dateRowCheckStyle(value) {
|
function dateRowCheckStyle(value) {
|
||||||
if ((value.days_to_next_audit) && (value.days_to_next_audit < {{ $snipeSettings->audit_warning_days }})) {
|
if ((value.days_to_next_audit) && (value.days_to_next_audit < {{ $snipeSettings->audit_warning_days ?: 0 }})) {
|
||||||
return { classes : "danger" }
|
return { classes : "danger" }
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Reference in a new issue