From ad28228495560f6a610f079f705a82486cc76e04 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 16 Jul 2011 17:36:47 -0430 Subject: [PATCH] Removing unused parameters of tagIsInvalid() --- lib/Cake/View/Helper/FormHelper.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index de0602c848a..762171fc673 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -277,14 +277,12 @@ protected function _isRequiredField($validateProperties) { } /** - * Returns false if given FORM field has no errors. Otherwise it returns the validation message + * Returns false if given form field described by the current entity has no errors. + * Otherwise it returns the validation message * - * @param string $model Model name as a string - * @param string $field Fieldname as a string - * @param integer $modelID Unique index identifying this record within the form * @return boolean True on errors. */ - public function tagIsInvalid($model = null, $field = null, $modelID = null) { + public function tagIsInvalid() { $entity = $this->entity(); $model = array_shift($entity); if (!empty($entity) && isset($this->validationErrors[$model])) {