http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692016-04-18T18:43:19ZTYPO3 ForgeTYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3022682016-04-18T18:43:19ZFrans Sarisfranssaris@gmail.com
<ul><li><strong>Assignee</strong> set to <i>Frans Saris</i></li></ul> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3023022016-04-18T21:35:59ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>It only looses the "hidden" values when an visible node is changed.</p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3025932016-04-20T15:45:28ZGerrit 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/47812">https://review.typo3.org/47812</a></p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3025952016-04-20T15:50:08ZFrans Sarisfranssaris@gmail.com
<ul><li><strong>Is Regression</strong> changed from <i>Yes</i> to <i>No</i></li></ul> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3026192016-04-20T17:47:10ZGerrit 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/47812">https://review.typo3.org/47812</a></p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3029842016-04-25T15:00:32ZGerrit Code Review
<ul></ul><p>Patch set 1 for branch <strong>TYPO3_7-6</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/47899">https://review.typo3.org/47899</a></p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3029862016-04-25T15:04:08ZGerrit Code Review
<ul></ul><p>Patch set 1 for branch <strong>TYPO3_6-2</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/47900">https://review.typo3.org/47900</a></p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3029872016-04-25T15:05:17ZFrans Sarisfranssaris@gmail.com
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Remember not rendered checkboxes in TCA treeSelect When you have a select field of rend..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/4e8a2efce7d5012fed6ae01c4190c1917739ae64">4e8a2efce7d5012fed6ae01c4190c1917739ae64</a>.</p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3151642016-10-10T15:32:54ZJörg Hambuchtypo3@jhtk.de
<ul></ul><p>In TYPO3 6.2 (starting from version 6.2.22) this bugfix prevents the category tree from being displayed. Frans, could you please check with 6.2 again?</p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3153452016-10-12T18:29:08ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>Hi Jörg,</p>
<p>In what situation does the category tree fail to render (normal TCA, IRRE, flexform, after creating new record, ....)? Do you get a JavaScript error? You are an latest release of 6.2?</p>
<p>Because for my current use-cases it works on latest 6.2</p>
<p>Groet Frans</p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3158772016-10-20T12:27:08ZDaniel Hirthhirth@stimme.net
<ul><li><strong>File</strong> <a href="/attachments/31630">2016-10-20_12h18_57.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/31630/2016-10-20_12h18_57.png">2016-10-20_12h18_57.png</a> added</li></ul><p>Frans Saris wrote:</p>
<blockquote>
<p>Hi Jörg,</p>
<p>In what situation does the category tree fail to render (normal TCA, IRRE, flexform, after creating new record, ....)? Do you get a JavaScript error? You are an latest release of 6.2?</p>
<p>Because for my current use-cases it works on latest 6.2</p>
<p>Groet Frans</p>
</blockquote>
<p>Hi,</p>
<p>I seem to have the same problem as Jörg. My TYPO3 Version is 6.2.27.</p>
<p>An Extbase Model "StaffMember" has a property "roles", which is a StorageObject on a Model "Role". The TCA for the property:</p>
<pre>
'roles' => array(
'exclude' => 1,
'label' => '...',
'config' => array(
'type' => 'inline',
'foreign_table' => '..._domain_model_role',
'foreign_field' => 'staffmember',
'maxitems' => 999,
'appearance' => array(
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1
),
),
),
</pre>
<p>The model "Role" itself has a property "Categories", whose TCA is auto-generated via</p>
<pre>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable(
$_EXTKEY,'...domain_model_role','categories',$options = array(
)
);
</pre>
<p>Now, when openening a Role-Element directly in BE List Module, all categories are shown correctly. When opening a StaffMember-Element, then clicking on a collapsed Child-Role of this Element, the Role gets loaded correctly BUT the category tab is empty. The whole treeview is missing except for the heading (see screenshot).</p>
<p>When changing the setting "collapseAll" to "0", the category trees of the Child-Roles are displayed correctly.</p>
<p>When manually resetting the Patch 4e8a2efce7d5012fed6ae01c4190c1917739ae64 in tree.js, the category trees of the Child-Roles are displayed correctly event with the collapseAll setting. The lines 63-70 of the patch seem to be responsible, when replacing them with</p>
<pre>
var selected = [];
</pre>
<p>everything seems to be working fine again. A fix for this would be really welcome.</p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3159422016-10-20T21:09:45ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>This part is one of the main parts of the fix:<br /><pre>
// prepare hidden input field (make sure only comma separated uids are present)
var selected = Ext.fly('treeinput' + this.id).dom.value.split(',');
for (var i = 0; i < selected.length; i++) {
var value = selected[i].split('|');
selected[i] = value[0];
}
Ext.fly('treeinput' + this.id).dom.value = selected.join(',');
</pre></p>
<p>Could you test if this fixed it for you?</p>
<pre>
// prepare hidden input field when found (make sure only comma separated uids are present)
if (Ext.fly('treeinput' + this.id)) {
var selected = Ext.fly('treeinput' + this.id).dom.value.split(',');
for (var i = 0; i < selected.length; i++) {
var value = selected[i].split('|');
selected[i] = value[0];
}
Ext.fly('treeinput' + this.id).dom.value = selected.join(',');
}
</pre>
<p>Please check if the states of the checkboxes that aren't visible are kept.</p>
<p>So collapse some checked leaves, save record twice and check if the checkbox is still checked by expanding the leaves again.</p> TYPO3 Core - Bug #75519: Flexform select rendermode tree doesn't respect collapsed nodeshttp://forge.typo3.org/issues/75519?journal_id=3801382018-10-02T11:19:09ZBenni Mackbenni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>