Project

General

Profile

Actions

Bug #25946

closed

BE typolink fields not saved [FCE]

Added by Vitoandre D'Oria about 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2011-04-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.1
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

Hello folks,

i am not sure whetever this bug belongs to TV or the CORE self.

I've encountered the following problem when dealing with linkfields in the backend:

URL links entered using the "RTE link" window are not stored under the following conditions in FCE's:

1: Create a FCE
CO > SC > CO > EL=linkfield

2: Enter a Link
A newly created FCE or saved but no SC yet added.
Note: This bug also happens if there are already saved SC elements but only on newly added items.

Adding a URL under this conditions has the following result:
The URL has 3 trailing spaces when selecting a URL using the "RTE link" Window and the link won't be saved by TYPO3 when saving the FCE.
eg:

"1276   " 

This problem won't happen if the SC has been saved before.

From what i've seen the "RTE link" window returns this:
updateValueInMainForm(input) > input = input + " " + cur_target + " " + cur_class + " " + cur_title;

which explains the 3 spaces but under the above described conditions the replacement (fieldGet > fieldSet > evalFunc_dummy, TBE_EDITOR.fieldChanged) aren't firing and TYPO3 won't save this 3 whitespace link.

A sample of an unsaved Backend Field (non-working) looks like this:
<input type="text" onchange="typo3form.fieldGet('data[tt_content][3909][tx_templavoila_flex][data][sDEF][lDEF][field_sc_linklist][el][ID-1c1babd47b-idx1302697057499-form][field_co_linklist][el][field_sc_linklist][el][ID-1c1babd47b-idx1302697057499-197393bf73-d73537c9bd-idx1302697059545-form][field_one_col][el][field_one_col_link][vDEF]','trim','',1,'');TBE_EDITOR.fieldChanged('tt_content','3909','tx_templavoila_flex','data[tt_content][3909][tx_templavoila_flex]');" maxlength="256" style="width: 144px;" value="" name="data[tt_content][3909][tx_templavoila_flex][data][sDEF][lDEF][field_sc_linklist][el][ID-1c1babd47b-idx1302697057499-form][field_co_linklist][el][field_sc_linklist][el][ID-1c1babd47b-idx1302697057499-197393bf73-d73537c9bd-idx1302697059545-form][field_one_col][el][field_one_col_link][vDEF]_hr" class="formField2 tceforms-textfield tceforms-textfield tceforms-linkfield" id="tceforms-linkfield-4da5943015e7f">

A working Field (saved) like this:
<input type="text" onchange="typo3form.fieldGet('data[tt_content][3909][tx_templavoila_flex][data][sDEF][lDEF][field_sc_linklist][el][1][field_co_linklist][el][field_sc_linklist][el][1][field_one_col][el][field_one_col_link][vDEF]','trim','',1,'');TBE_EDITOR.fieldChanged('tt_content','3909','tx_templavoila_flex','data[tt_content][3909][tx_templavoila_flex]');" maxlength="256" style="width: 144px;" value="" name="data[tt_content][3909][tx_templavoila_flex][data][sDEF][lDEF][field_sc_linklist][el][1][field_co_linklist][el][field_sc_linklist][el][1][field_one_col][el][field_one_col_link][vDEF]_hr" class="formField2 tceforms-textfield tceforms-textfield tceforms-linkfield" id="tceforms-linkfield-4da5aea14f5c1">

Isn't it possible to fix this just by triming the URL's under all circumstances using PHP when saving the HTML Form!?
Right now all links entered are lost and the user has to re-enter it again.

The Problem happens on several boxes using TYPO3 4.4 - 4.5
Tested with TV 1.5.3/1.5.4
Using FF 3/4, IE8/9

hope someone can shed light upon this mystery :-)


Files

25946_class.browse_links.patch (908 Bytes) 25946_class.browse_links.patch Core Bug #25946 Patch for class.browse_links.php Version Typo3 4.5.16 Darren Clark, 2012-08-09 16:54
Actions

Also available in: Atom PDF