Issue Bug Closed

#20977Error in tceforms::previewFieldValue

Steffen Kamper 09/02/09, 10:24 updated 09/10/13, 08:19

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.