1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-05 00:23:24 +00:00

Fixes rubocop offense "[Correctable] Lint/SafeNavigationConsistency: Use . instead of unnecessary &.." (#13596).

git-svn-id: https://svn.redmine.org/redmine/trunk@23588 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2025-03-30 08:31:05 +00:00
parent 7ecfac8020
commit 59daaa27e9

View File

@ -182,7 +182,7 @@ class TimeEntry < ApplicationRecord
if spent_on && spent_on_changed? && user
errors.add :base, I18n.t(:error_spent_on_future_date) if !Setting.timelog_accept_future_dates? && (spent_on > user.today)
end
if !Setting.timelog_accept_closed_issues? && issue&.closed? && issue&.was_closed?
if !Setting.timelog_accept_closed_issues? && issue&.closed? && issue.was_closed?
errors.add :base, I18n.t(:error_spent_on_closed_issue)
end
end