Skip to content
This repository
Browse code

Removing unused parameters of tagIsInvalid()

  • Loading branch information...
commit ad28228495560f6a610f079f705a82486cc76e04 1 parent 108505a
José Lorenzo Rodríguez authored July 16, 2011

Showing 1 changed file with 3 additions and 5 deletions. Show diff stats Hide diff stats

  1. 8  lib/Cake/View/Helper/FormHelper.php
8  lib/Cake/View/Helper/FormHelper.php
@@ -277,14 +277,12 @@ protected function _isRequiredField($validateProperties) {
277 277
 	}
278 278
 
279 279
 /**
280  
- * Returns false if given FORM field has no errors. Otherwise it returns the validation message
  280
+ * Returns false if given form field described by the current entity has no errors.
  281
+ * Otherwise it returns the validation message
281 282
  *
282  
- * @param string $model Model name as a string
283  
- * @param string $field Fieldname as a string
284  
- * @param integer $modelID Unique index identifying this record within the form
285 283
  * @return boolean True on errors.
286 284
  */
287  
-	public function tagIsInvalid($model = null, $field = null, $modelID = null) {
  285
+	public function tagIsInvalid() {
288 286
 		$entity = $this->entity();
289 287
 		$model = array_shift($entity);
290 288
 		if (!empty($entity) && isset($this->validationErrors[$model])) {

0 notes on commit ad28228

Please sign in to comment.
Something went wrong with that request. Please try again.