http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692010-07-21T14:08:29ZTYPO3 ForgeTYPO3 Core - Bug #23241: Frontend Editing edit panels are shown for content element types that cannot be editedhttp://forge.typo3.org/issues/23241?journal_id=575202010-07-21T14:08:29ZChris topher
<ul></ul><p>Hi Jeff,</p>
<p>if you already made a patch, that's great!<br />If not, have a look at #0005412, where Steffen made one. Maybe you can then continue with something like that. ;-)</p>
<p>However, this has not yet been posted to Core List...</p> TYPO3 Core - Bug #23241: Frontend Editing edit panels are shown for content element types that cannot be editedhttp://forge.typo3.org/issues/23241?journal_id=575212010-08-20T18:18:31ZSven Juergens
<ul></ul><p>hi,<br />sorry but i found a problem with this patch, now. I testet only with feedit not with feedit_advanced.<br />If you use the Editpanel only for creating new records, there is a problem with recordEditAccessInternals() in class.t3lib_userauthgroup.php</p>
<p>For example use this setup:<br />temp.newcontent = EDITPANEL<br />temp.newcontent {<br /> allow = new<br /> newRecordFromTable = tt_content<br />}</p>
<p>page = PAGE<br />page.10 = TEXT<br />page.10.value = Hello World<br />page.20 < temp.newcontent</p>
<p>Only as Administrator you can see the editpanel.</p>
<p>Problem Description:<br />in t3lib_frontendedit the patch introduce this check:<br />$GLOBALS['BE_USER']->recordEditAccessInternals($table, $dataArray))</p>
<p>table = table to edit<br />$dataArray = if you want create a new Record, this is the current PageRecord</p>
<p>in recordEditAccessInternals() in t3lib_userauthgroup is one check that produce the error<br />($idOrRow is the $dataArray, which is a PageRecord)<br />---<br /> if ($TCA[$table]['ctrl']['languageField']) {<br /> if (isset($idOrRow[$TCA[$table]['ctrl']['languageField']])) {<br />...<br />---<br />$TCA[$table]['ctrl']['languageField'] = is in this example with tt_content 'sys_language_uid'<br />but in the next line we check the given PageRecord for sys_language_uid as languageField, but a page has no sys_language_uid and so always return a FALSE</p> TYPO3 Core - Bug #23241: Frontend Editing edit panels are shown for content element types that cannot be editedhttp://forge.typo3.org/issues/23241?journal_id=575222010-11-17T22:16:54ZJeff Segarsjsegars@alumni.rice.edu
<ul></ul><p>Sven,<br />Thanks for the testing! You're right about the issue too. The attached v2 works around this problem by only calling recordEditAccessInternals() when we're editing an existing record.</p>
<p>If you're able to vote on this on the core list, that would be great.</p>
<p>Thanks!<br />Jeff</p> TYPO3 Core - Bug #23241: Frontend Editing edit panels are shown for content element types that cannot be editedhttp://forge.typo3.org/issues/23241?journal_id=575232010-11-17T23:38:32ZSven Juergens
<ul></ul><p>Hi Jeff,</p>
<p>thanks for your continuous work on this patch. Give a +1 in core list, would be nice to see this in core :)</p> TYPO3 Core - Bug #23241: Frontend Editing edit panels are shown for content element types that cannot be editedhttp://forge.typo3.org/issues/23241?journal_id=575242010-11-17T23:40:33ZJeff Segarsjsegars@alumni.rice.edu
<ul></ul><p>Committed v2 to trunk in r9476</p> TYPO3 Core - Bug #23241: Frontend Editing edit panels are shown for content element types that cannot be editedhttp://forge.typo3.org/issues/23241?journal_id=618122011-03-29T14:24:38ZSusanne Moogsusanne.moog@typo3.org
<ul><li><strong>Target version</strong> deleted (<del><i>4.5.0</i></del>)</li></ul>