[TYPO3-core] RFC #12964: EDITPANEL -> "newRecordinPid" doesn't work anymore with feedit

Sven Juergens t3 at blue-side.de
Mon May 10 18:31:26 CEST 2010


Am 10.05.10 15:54, schrieb Jeff Segars:
> On 5/9/10 6:56 AM, Sven Juergens wrote:
>> Hi,
>>
>> This is an SVN patch request.
>>
>> Type: Bugfix
>>
>> Bugtracker references:
>>
>> http://bugs.typo3.org/view.php?id=12964
>>
>> Branches:
>>
>> trunk
>>
>> Problem:
>>
>> if you use the standard feedit with TYPO3 4.3 the following script is
>> not completely possible
>>
>> page.1 = EDITPANEL
>> page.1{
>> allow = new
>> newRecordFromTable = tt_content
>> label = new Element
>> newRecordInPid = 46
>> }
>>
>> the record is always created on $GLOBALS['TSFE']->id
>>
>> the problem is located in
>> sysext/feedit/view/class.tx_feedit_editpanel.php in function editPanel().
>>
>> the value of "newRecordInPid" is commit in var $newUID to the function.
>>
>> but later in the function it's used as $nPid()
>>
>>
>> Solution:
>>
>> rename $nPid to $newUID
>
> Hey Sven, thanks for the bugfix! I just fixed a similar issue in
> feeditadvanced on Friday.
>
> One note from a quick read of the patch here. According to TSRef,
> newRecordInPid should not apply to the pages table but should apply to
> all others (ie. "Define a page ID where new records (except new pages)
> will be created").
>
> If you can make an update for that, I'll be happy to give it a full
> review later today. Also, I think this can go into 4.3 in addition to
> trunk since its a clear bugfix.
>
> Thanks,
> Jeff

Hey Jeff,

You're right.

I'removed $nPid/$newUid if table is pages.

attached 12964_v2.diff

Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12964_v2.diff
Type: application/applefile
Size: 1682 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100510/1decba6c/attachment-0001.bin>


More information about the TYPO3-team-core mailing list