WIP - create validation method for common object

This commit is contained in:
ATM john 2021-06-14 20:59:46 +02:00
parent 43ecba2e63
commit 23765bf459

View File

@ -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|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 bool $displayValidationResult Display validation results messages for fields, set it to true after form sended to display user mistakes
* @param string $mode 1=Used for search filters
* @param int $mode 1=Used for search filters
* @return string
*/
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];
}
// 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
$fieldValidationErrorMsg = '';
$validationClass = '';