Skip to content

Commit 4046fba

Browse files
authored
Merge pull request #18256 from iryadifarhan/fix/audit-log-displays-negative-number-incorrectly-when-next-audit-date-filled-with-current-date
Fixes inconsistent negative symbol at Audit Log Report when Next Audit Date is set to the current date
2 parents 6dad0d6 + a3a49e4 commit 4046fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Actionlog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function daysUntilNextAudit($monthInterval = 12, $asset = null)
375375
}
376376

377377
// Show as negative number if the next audit date is before the audit date we're looking at
378-
if ($this->created_at > $override_default_next) {
378+
if ($this->created_at->toDateString() > $override_default_next->toDateString()) {
379379
$next_audit_days = '-'.$next_audit_days;
380380
}
381381

0 commit comments

Comments
 (0)