From 4c2f2dfe56b2e7902f4c71735f8e5d2eaa0b1002 Mon Sep 17 00:00:00 2001 From: Barrett Clark Date: Mon, 3 Feb 2020 19:53:50 -0600 Subject: [PATCH] Add more specificity to the anstract length check --- app/models/proposal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/proposal.rb b/app/models/proposal.rb index c4bdb8f64..40fea7d8e 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -252,7 +252,7 @@ def has_reviewer_activity? private def abstract_length - return unless abstract.gsub(/\r/, '').gsub(/\n/, '').length > 600 + return unless abstract_changed? && abstract.gsub(/\r/, '').gsub(/\n/, '').length > 600 errors.add(:abstract, "is too long (maximum is 600 characters)") end