I suggest you ...

javascript bug in uCommerce 7.2.1.16274: after opening media tree to select image in umbraco parent.right is null

How to reproduce:
- select a category
- select the media tab
- click on 'Choose' to select an image from the media browser
- click cancel or select an image
- click in the tree on another category

FIX:
if you change parent.right.location.href into parent.right.document.location.href then the ReplaceLegacyJs call will update your code correctly.

Look at the umbraco cms source:
https://github.com/umbraco/Umbraco-CMS/blob/master-v7/src/Umbraco.Web/Trees/LegacyTreeJavascript.cs

I tested this on Umbraco 7.5.3, but since this code of LegacyTreeJavascript.cs has not changed since Oct 23, 2013 I think more versions will have this issue.

1 vote
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
David van de Vliet shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
started  ·  AdminUcommerce (Admin, uCommerce) responded  · 

Hi

Thanks for bringing this to our attention and that you have suggested a fix for it. That’s awesome.

We actaully change it from
parent.right.document.location.href
To
parent.right.location.href

To make the selected node re-clickable.

However, we where not aware of this side effect.

I discover that this solve both issues:
parent.document.right.location.href

This fix will be include in the next uCommerce release.

Regards
Support

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base