Closed tomgross closed 5 years ago
A JavaScript Error is thrown in folder contents:
it's because of this fix for https://github.com/plone/Products.CMFPlone/issues/2322
Since I am now an old hand at using plone-compile-resources I can confirm that reverting the patch fixes the UI bug and the javascript console error (if it was not obvious enough)
Unfortunately I don't understand the original bug report :-(. What's a fc-breadcrumb ? what's the difference with a mere breadcrumb ? It must have been clear for the people reviewing this patch but not for me.
@tomgross Can you confirm this was fixed in the final 5.1.2 release?
Works OK.
Unfortunately I tested wrong. The compiled scripts
static/plone-logged-in-compiled.js
and
static/plone-logged-in-compiled.min.js
of the Products.CMFPlone-5.1.2.1-py2.7.egg
still contain the wrong JavaScript. To make it work the plone-logged-in bundle needs to be recompiled.
There is another issue in this context, which is probably not a blocker but still annoying: The status message is not reloaded on navigation in folder contents.
Steps to reproduce:
Here I created a working copy of a-folder and navigated one level down to the child a-page
At least the recompiling TTW does not help :(
Whats the current status here? We have a new release of CMFPlone out, but the issue still the same :(
@MrTango : I don't get it. It was my impression that the fix was already committed in this change and indeed if I recompile bundle as it is as shipped with 5.1.2 it is correct; however your patch seems to apply the change again. Also it does lot of other changes that are unnecessary to fix #2395 so how can it be a matter of recompilation as said in your changelog ???
fixed and merged in #2471 ... hopefully released in 5.1.3(.1) ?
Can someone confirm that this fix actually worked? Just tested it on 5.1 coredev and the actions within the toolbar don't get updated.
Even if I put the loggedin bundle in js dev mode, I got the error from toolbar.js
this problem has many manifestations - see also https://github.com/plone/mockup/pull/858
I am currently recompiling the bundles to include https://github.com/plone/Products.CMFPlone/issues/2512
@agitator I will test after the merge - what is the concrete "error from toolbar.js" you get?
The error is: TypeError: that.$el.parent.replaceWith is not a function
This problem is severe. A user can accidentally perform operations on an item unintentionally. e.g. they could enter Folder A, navigation through a buncha folders and end on Folder J, add a piece of content and the content ends up in Folder A instead of the intended context of Folder J. It also appears in 5.1.3-pending
Should already be fixed in: https://github.com/plone/Products.CMFPlone/pull/2398 https://github.com/plone/Products.CMFPlone/pull/2399
But for sure in 5.1.5 with: https://github.com/plone/Products.CMFPlone/pull/2563 https://github.com/plone/plonetheme.barceloneta/pull/165
If it's not, it might be a resource caching problem, where @sunew knows more about it and we're investigating it tomorrow.
@agitator @runyaga I can confirm this is fixed on latest 5.1.x
What I did:
folder_contents
to a deeper lever.Edit
Button in toolbar.What I expect to happen:
Edit navigated page
What actually happened:
URL points to the folder the navigation started.
What version of Plone/ Addons I am using:
Plone 5.1.2-pending (minimal) No Addons.
This works with Plone 5.1.1.