Bug #64238
closedTCA date/datetime labels for IRRE records displayed wrong when changing label contents
0%
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.
Updated by Georg Ringer almost 10 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...
Updated by Pascal Dürsteler almost 10 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.
Updated by Georg Ringer almost 10 years ago
there are far more possibilities how the label could be rendered.
Updated by Georg Ringer almost 9 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.