mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08: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) {
|
||||
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 {};
|
||||
|
|
Loading…
Reference in a new issue