Project

General

Profile

Actions

Bug #20977

closed

Error in tceforms::previewFieldValue

Added by Steffen Kamper about 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-09-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20916: Cleanup of tceforms.phpClosedOliver Hader2009-08-23

Actions
Actions #1

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF