Issue Bug Closed

#21817EDITPANEL -> "newRecordinPid" doesn't work anymore with feedit

Sven Juergens 12/07/09, 12:37 updated 10/02/18, 12:24

Description

the following script is not completely possible

page.1 = EDITPANEL
page.1{
allow = new
newRecordFromTable = tt_content
label = Neue Veranstaltung anlegen
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
(issue imported from #M12964)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.