Bug #20977
closedError in tceforms::previewFieldValue
0%
Description
In this function var $field is used but not present, it's missed in the function params.
This issue is fixed in trunk, but error still exists in prior versions of TYPO3.
The fix adds $field to the function params:
function previewFieldValue($value, $config, $field = '') {
This solves the problem, but the calling functions need to pass the field var too.
The only calls in core i found are in tceforms.php
This function was introduced in rev 1817 from Kasper (28.11.2006) with this error, and not changed since that time. The (uninitialized) var $field is used for t3lib_BEfunc::thumbCode($rowCopy,$table,$field, ...
so it should be there to work proper. It seems that the thumb code is delivered also with uninitialized vars, but it's not correct.
(issue imported from #M11848)