Project

General

Profile

Actions

Bug #17313

closed

Time field rendered as Unix Number in TCEForm

Added by rehman over 17 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-05-16
Due date:
% Done:

0%

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

Description

Problem:
In the Backend Input field with eval = time are displayed as unix time numbers
Analysis:
It seems to come from the Javascript file t3lib/jsfunc.evalfield.js
function evalFunc_outputObjValue(FObj,value)
tca ...input... eval== "time,nospace" gives number
tca ...input... eval== "time" gives nice time

It seems to come from the Javascript file t3lib/jsfunc.evalfield.js
function
function evalFunc_outputObjValue(FObj,value) {
var evallist = FObj.evallist;
var index=1;
var theEvalType = this.split(evallist, ",", index);
var newValue=value;
while (theEvalType) {
// ### HERE HERE HERE AHMED FIX### it throws away last iteration result
newValue = evalFunc.output(theEvalType, value, FObj);
index++;
theEvalType = this.split(evallist, ",", index);
}
return newValue;
}
-----------------------
most probably this line should be
newValue = evalFunc.output(theEvalType, newValue , FObj);
because my evallist looks like this "required,time,nospace" on iterating nospace it throws away the result of iterating on "time".

(issue imported from #M5640)

Actions

Also available in: Atom PDF