Browse Source

remove condition

pull/683/head
Dushan Despotovic 3 years ago
parent
commit
95e7442640
  1. 2
      app/models/validations/setup_validations.rb

2
app/models/validations/setup_validations.rb

@ -6,7 +6,6 @@ module Validations::SetupValidations
end end
def validate_startdate(record) def validate_startdate(record)
if record.needstype == 2
if record.startdate > Time.zone.today if record.startdate > Time.zone.today
record.errors.add :startdate, I18n.t("validations.setup.startdate.today_or_earlier") record.errors.add :startdate, I18n.t("validations.setup.startdate.today_or_earlier")
end end
@ -32,7 +31,6 @@ module Validations::SetupValidations
end end
end end
end end
end
private private

Loading…
Cancel
Save