http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692018-07-07T17:03:19ZTYPO3 ForgeTYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3685102018-07-07T17:03:19ZGuido Schmechel
<ul></ul><p>Can reproduce it with 9.4.dev</p>
<p><strong>master\typo3\sysext\backend\Classes\Form\FormDataProvider\DatabaseUserPermissionCheck.php function addData()</strong><br />if (is_array($result['parentPageRow']))</p>
<p>$result['parentPageRow'] is null if editor creates a page at root. Admin user has a separate check and returns simple true</p>
<p><strong>master\typo3\sysext\backend\Classes\Form\FormDataProvider\DatabaseParentPageRow.php</strong><br />This class should return correctly null if root level is accessed.</p>
<p>Maybe its okay to use $result['neighborRow'] if $result['parentPageRow'] is null.</p>
<p>After that the saving throws this exception:<br />1: Attempt to insert a record on page '[root-level]' (0) from table 'pages' without permissions. Or non-existing page.</p>
<p><strong>master\typo3\sysext\core\Classes\DataHandling\DataHandler.php</strong><br />checkRecordInsertAccess() get a negative value via resolveSortingAndPidForNewRecord()</p>
<p>So a simple abs() does the trick</p> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3685112018-07-07T17:36:56ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/57497">https://review.typo3.org/57497</a></p> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3685132018-07-07T18:09:14ZGerrit Code Review
<ul></ul><p>Patch set 2 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/57497">https://review.typo3.org/57497</a></p> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3685152018-07-07T21:23:49ZRiccardo De Contardierredeco@gmail.com
<ul></ul><p>Is this the same issue? <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: New pages are places at same level instead of under, when using the ContextMenu. (Closed)" href="http://forge.typo3.org/issues/81405">#81405</a></p> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3685162018-07-07T21:24:51ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/81405">Bug #81405</a>: New pages are places at same level instead of under, when using the ContextMenu.</i> added</li></ul> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3957532019-03-01T22:41:44ZSusanne Moogsusanne.moog@typo3.org
<ul><li><strong>Category</strong> changed from <i>Backend User Interface</i> to <i>Pagetree</i></li><li><strong>Status</strong> changed from <i>Under Review</i> to <i>New</i></li></ul><p>Patch has been abandoned.</p> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3980672019-04-12T12:45:50ZSybille Peterssypets@gmx.de
<ul></ul><p>So you want to create a page as subpage of current page?</p>
<p>But if you use "New", the page is created (or tried to create) on same level as current page (under current page). I think this is currently not a bug, but it is not great either.</p>
<p>If you want to create a page as a subpage use the context menu: "More options" > "Create new wizard".</p>
<p>I think this is actually a duplicate of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: New pages are places at same level instead of under, when using the ContextMenu. (Closed)" href="http://forge.typo3.org/issues/81405">#81405</a> and should be closed.</p> TYPO3 Core - Bug #85260: Can not create new page via context menu on root page as editorhttp://forge.typo3.org/issues/85260?journal_id=3986072019-04-23T11:47:40ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>I close this issue as a duplicate of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: New pages are places at same level instead of under, when using the ContextMenu. (Closed)" href="http://forge.typo3.org/issues/81405">#81405</a> , please continue the discussion there, thank you.<br />I have added there a reference to this issue to keep track of it; I've also added there the comment <a class="external" href="https://forge.typo3.org/issues/85260#note-1">https://forge.typo3.org/issues/85260#note-1</a> to keep track of it, too.</p>
<p>If you think that this is the wrong decision, then please reopen it or open a new ticket and add a relation to this ticket number.</p>
<p>Thank you and best regards.</p>