diff --git a/view/class.tx_feedit_editpanel.php b/view/class.tx_feedit_editpanel.php
index 68c5ff2..d33f3be 100644
--- a/view/class.tx_feedit_editpanel.php
+++ b/view/class.tx_feedit_editpanel.php
@@ -110,9 +110,9 @@ class tx_feedit_editpanel {
}
if (isset($allow['new'])) {
if ($table == 'pages') {
- $panel .= $this->editPanelLinkWrap('', $formName, 'new', $currentRecord, '', $nPid);
+ $panel .= $this->editPanelLinkWrap('', $formName, 'new', $currentRecord, '');
} else {
- $panel .= $this->editPanelLinkWrap('', $formName, 'new', $currentRecord, '', $nPid);
+ $panel .= $this->editPanelLinkWrap('', $formName, 'new', $currentRecord, '', $newUID);
}
}
// Hiding in workspaces because implementation is incomplete, Hiding for localizations because it is unknown what should be the function in that case