Issue Bug Closed

#63750Avoid calling getUserObj in DataHandler->checkValue_input_Eval

Stephan Großberndt 12/10/14, 20:10 updated 10/02/18, 11:48

Description

If the eval field is empty in a TCA input definition there is no NULL or empty check:

default:
    $evalObj = GeneralUtility::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][$func] . ':&' . $func);
    if (is_object($evalObj) && method_exists($evalObj, 'evaluateFieldValue')) {
        $value = $evalObj->evaluateFieldValue($value, $is_in, $set);
    }

If $func is empty, this leads to a call to unnecessary call to GeneralUtility::getUserObj(‘:&’);

Reviews 2