[TYPO3-core] RFC #1104: Setting file fields in TCA to "required" makes it impossible to save the record - BUGGY
Tobias Liebig
mail_typo3 at etobi.de
Wed Mar 10 10:51:43 CET 2010
Hej Stefan,
thanks for testing and digging in. You're right, the problem was
introduced by our patch.
The attached patch should solve the issue. Can you please double-check it?
regards
tobias
P.S. i'm not sure if we should file a new issue on bugs.typo3.org, or if
i can commit this patch als "follow-up" right away?
Stefan Geith schrieb:
> Stefan Geith schrieb:
>> Stefan Geith schrieb:
>>> Oliver Hader schrieb:
>>>> FYI: Committed to SVN:
>>>> * TYPO3_4-2 (rev. 7083)
>>>> * TYPO3_4-3 (rev. 7084)
>>>> * Trunk (rev. 7085)
>>>
>>> Hmmm,
>>> I have prblems with IRRE since this change ...
>>> Trunk Rev.7080 is ok,
>>> Trunk Rev 7084 gives a yellow exclamation mark, when creating a new
>>> record. The whole Inlie-Field is marked, no specific input-field.
>>> Same, when editing an existing Record ...
>>>
>>> Have to dig into this ...
>>
>> Seems to be line 227:
>
> of file "typo3/jsfunc.tbe_editor.js"
>
>>
>> If I change it from (now)
>> if (!TBE_EDITOR.checkRange(numberOfElements, elementData.range[0],
>> elementData.range[1])) {
>> to the old
>> if (!TBE_EDITOR.checkRange(form, elementData.range[0],
>> elementData.range[1])) {
>>
>> then all is OK again.
>>
>> /STefan
>>
>>
>>>
>>> /Stefan
>>>
>>>
>>>
>>>> Am 05.03.10 23:30, schrieb Ingmar Schlecht:
>>>>> This is a SVN patch request.
>>>>>
>>>>> Type: bugfix
>>>>>
>>>>> Branches: trunk, 4.3, 4.2
>>>>>
>>>>> Bugtracker references:
>>>>> http://bugs.typo3.org/view.php?id=1104
>>>>>
>>>>> Problem:
>>>>> Setting file fields in TCA to "required" makes it impossible to
>>>>> save the
>>>>> record. (Or rather, setting minitems > 1, which is like required.)
>>>>>
>>>>> Solution:
>>>>> Add the newly uploaded element to the count of total elements. This
>>>>> also
>>>>> makes maxitems work correctly for newly uploaded items.
>>>>>
>>>>> regards
>>>>> - Tobi and Ingmar from Bugauction at T3DD10
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug_1104_fup.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100310/067eec3d/attachment.asc>
More information about the TYPO3-team-core
mailing list