WIP - create validation method for common object
This commit is contained in:
parent
43ecba2e63
commit
23765bf459
@ -6380,8 +6380,7 @@ abstract class CommonObject
|
|||||||
* @param string $keyprefix Suffix string to add into name and id of field (can be used to avoid duplicate names)
|
* @param string $keyprefix Suffix string to add into name and id of field (can be used to avoid duplicate names)
|
||||||
* @param string|int $morecss Value for css to define style/length of field. May also be a numeric.
|
* @param string|int $morecss Value for css to define style/length of field. May also be a numeric.
|
||||||
* @param int $nonewbutton Force to not show the new button on field that are links to object
|
* @param int $nonewbutton Force to not show the new button on field that are links to object
|
||||||
* @param bool $displayValidationResult Display validation results messages for fields, set it to true after form sended to display user mistakes
|
* @param int $mode 1=Used for search filters
|
||||||
* @param string $mode 1=Used for search filters
|
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function showInputField($val, $key, $value, $moreparam = '', $keysuffix = '', $keyprefix = '', $morecss = 0, $nonewbutton = 0, $mode = 0)
|
public function showInputField($val, $key, $value, $moreparam = '', $keysuffix = '', $keyprefix = '', $morecss = 0, $nonewbutton = 0, $mode = 0)
|
||||||
@ -6397,9 +6396,6 @@ abstract class CommonObject
|
|||||||
$val = $this->fields[$key];
|
$val = $this->fields[$key];
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is en experimental validation output TODO : remove this deactivation line
|
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL < 2 && empty($conf->global->MAIN_ACTIVATE_VALIDATION_RESULT)) { $displayValidationResult = false; }
|
|
||||||
|
|
||||||
// Validation tests and output
|
// Validation tests and output
|
||||||
$fieldValidationErrorMsg = '';
|
$fieldValidationErrorMsg = '';
|
||||||
$validationClass = '';
|
$validationClass = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user