Skip to content

Commit

Permalink
Removing unused parameters of tagIsInvalid()
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 16, 2011
1 parent 108505a commit ad28228
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -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])) {
Expand Down

0 comments on commit ad28228

Please sign in to comment.