Project

General

Profile

Actions

Bug #64238

closed

TCA date/datetime labels for IRRE records displayed wrong when changing label contents

Added by Pascal Dürsteler over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Won't have this time
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2015-01-11
Due date:
% Done:

0%

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

Description

When you define a date or datetime field as label for an IRRE record, the field's raw value (the timestamp) will be displayed as record title. After saving, the date is correctly displayed.

Example: TCA says 'label' => 'begin_at', which is a datetime field. When you add a new IRRE record (or update an existing) and set 'begin_on', the raw timestamp is copied into the IRRE record panel's header, leading to a wrong title displayed.

Actions #1

Updated by Georg Ringer over 9 years ago

reason is quite simple. the JS for that is in typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js


TYPO3.jQuery('#' + this.escapeObjectId(objectId) + '_label').html(value.length ? value : this.noTitleString);

a ajax call would be needed but on this place, no information about the TCA for this field is known...

Actions #2

Updated by Pascal Dürsteler over 9 years ago

I haven't investigated yet so I just threw it in here.

I wouldn't say that there is no information present; At least there are css classes assigned to the input, e.g. .tceforms-datetimefield, with which one could work with, wouldn't it? Of course that would also require an extra call, but not via AJAX but to the DOM.

Actions #3

Updated by Georg Ringer over 9 years ago

there are far more possibilities how the label could be rendered.

Actions #4

Updated by Georg Ringer over 8 years ago

  • Status changed from New to Closed
  • Priority changed from Should have to Won't have this time

even though this bugreport is valid, the handling in 7 LTS is now a bit different as it doesnt set the title of the irre record automatically anymore after leaving the field. therefore the timestamp is not shown anymore.

6.2 won't be changed anymore in this regard.

Actions

Also available in: Atom PDF