mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing unused parameters of tagIsInvalid()
This commit is contained in:
parent
108505a6a0
commit
ad28228495
1 changed files with 3 additions and 5 deletions
|
@ -277,14 +277,12 @@ class FormHelper extends AppHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
* @return boolean True on errors.
|
||||||
*/
|
*/
|
||||||
public function tagIsInvalid($model = null, $field = null, $modelID = null) {
|
public function tagIsInvalid() {
|
||||||
$entity = $this->entity();
|
$entity = $this->entity();
|
||||||
$model = array_shift($entity);
|
$model = array_shift($entity);
|
||||||
if (!empty($entity) && isset($this->validationErrors[$model])) {
|
if (!empty($entity) && isset($this->validationErrors[$model])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue