diff --git a/CHANGELOG.md b/CHANGELOG.md index 923729dfa..9fe7f97fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Improved fix_invoice_item task - Fix a bug: cryptic error message when failed to create a manager +- Fix a bug: unable to restore accounting periods closed by a deleted admin ## v5.6.1 2023 January 6 diff --git a/app/models/accounting_period.rb b/app/models/accounting_period.rb index 39746142f..2d62d2703 100644 --- a/app/models/accounting_period.rb +++ b/app/models/accounting_period.rb @@ -12,7 +12,7 @@ class AccountingPeriod < ApplicationRecord before_create :compute_totals after_commit :archive_closed_data, on: [:create] - validates :start_at, :end_at, :closed_at, :closed_by, presence: true + validates :start_at, :end_at, :closed_at, presence: true validates_with DateRangeValidator validates_with DurationValidator validates_with PastPeriodValidator