We have moved to GitHub Issues
Created by Emil Wangaa 03 Feb 2017, 10:27:51 Updated by Sebastiaan Janssen 23 Feb 2017, 07:50:36
Subtask of: U4-9272
When creating a new partialview, partialviewmacro or script with the new create dialog U4-9429 the editor fails loading the view because it tries to load undefined. The view is created fine but the load of it fails.
@Shandem I need you to have a look at this and see if you can figure out the issue as both @madsrasmussen and I have given up on this.
To reproduce simply create a new partialview (or partialviewmacro or script) and save it. The file is saved successful and the tree path is updated correct highlighting the newly created file - but the editor tries to load an undefined partialview (the url switches to /umbraco#/settings/partialviews/edit/undefined) and is empty.
This was caused by a requirement of the backoffice routing, as it checks if the current item opened in the editor has an ID equal to what is in the route. If it doesn't it redirects, in this case, the partial view file did not even have a ID property - which is why it redirected to undefined.
Fix was to add a ID to the scriptfile model, which the routing could use,
Fix is committed to dev-v7.6 branch
Backwards Compatible: True
Due in version: 7.6.0
Sprint: Sprint 53
Story Points: 1