New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMS sidebar tree view - nested pages broken #6599
Comments
I've discussed 3 possible approaches to solve this issue with @dhensby on skype:
|
I think for this we should probably just do that as it's the least risky |
I actually happen to believe 3. is less risky. Because with 4. a developer might still overwrite the template and add |
I've had a quick look at removing That leaves us two choices, really, strip comments or just roll back to the nasty way we were. TBH, I think the nasty way we were is how we should have left it for a patch fix. |
considering that it was just a patch, I guess I agree. |
Just wanted to throw this out there as a reminder. Technically there's no need for closing p.s. I had to hunt this down since the links in the release announcement don't work (not sure if this is normal). |
@patricknelson yep, that's @Zauberfisch's point 3 |
@Zauberfisch feel free to open an alternative approach against 3 or master. We had to get a fix in that we knew would work under tight time constraints |
With the release of 3.5.2 the page tree in the sidebar is broken for nested items, if
SSViewer.source_file_comments
is true. The problem is that each list item has 2</li>
closing tags.3.5.1:
3.5.2:
3.5.2 after re-expanding "Home":
This happens because in Hierarchy.php#L148 we check for a closing
</li>
at the end, but withSSViewer.source_file_comments
, the string actually contains</li><!-- end template /vagrant/www/framework/admin/templates/Includes/LeftAndMain_TreeNode.ss -->
.Therefore the existing
</li>
is not removed and the output becomes:The text was updated successfully, but these errors were encountered: