View | Details | Raw Unified | Return to bug 6341 | Differences between
and this patch

Collapse All | Expand All

(-)a/classes/author/form/submit/AuthorSubmitStep3Form.inc.php (-1 / +1 lines)
 Lines 39-45   class AuthorSubmitStep3Form extends AuthorSubmitForm { Link Here 
39
			$track = $trackDao->getTrack($paper->getTrackId());
39
			$track = $trackDao->getTrack($paper->getTrackId());
40
			$abstractWordCount = $track->getAbstractWordCount();
40
			$abstractWordCount = $track->getAbstractWordCount();
41
			if (isset($abstractWordCount) && $abstractWordCount > 0) {
41
			if (isset($abstractWordCount) && $abstractWordCount > 0) {
42
				$this->addCheck(new FormValidatorCustom($this, 'abstract', 'required', 'author.submit.form.wordCountAlert', create_function('$abstract, $wordCount', 'foreach ($abstract as $localizedAbstract) {return count(explode(" ",$localizedAbstract)) < $wordCount; }'), array($abstractWordCount)));
42
				$this->addCheck(new FormValidatorCustom($this, 'abstract', 'required', 'author.submit.form.wordCountAlert', create_function('$abstract, $wordCount', 'foreach ($abstract as $localizedAbstract) {return count(explode(" ",strip_tags($localizedAbstract))) < $wordCount; }'), array($abstractWordCount)));
43
			}
43
			}
44
		}
44
		}
45
	}
45
	}

Return to bug 6341