Try our conversational search powered by Generative AI!

Issue with projects user interface code and content providers

Found in

EPiServer.CMS.UI 9.4.3

Fixed in

EPiServer.CMS.UI 9.5.0

(Or a related package)

Created

Apr 04, 2016

Updated

Jun 27, 2018

Area

CMS UI

State

Closed, Fixed and tested


Description

Steps to reproduce:
1. Follow this: http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2014/11/content-providers-101--part-i-introduction-initialization-ui--identity-mapping/ to implement a custom content provider.
2. Try to edit an attendee by double clicking it.
3. Note that the attendee does not load.
4. Try to load any other page/block and also note that the UI is broken until the user refreshes the page.
5. The issue occurs in this line of code in widgets.js:
getProjectItemForContent: function(_735) {
var _736 = new _730(_735);
if (_736.workId === 0)

{ // <<< This causes the problem as we never have a work id throw new Error("The content link needs to be version specific"); }

Configuring projects out doesn't solve the problem, and it appears that the code is executed even if projects mode is turned off.

Other developer with same issue:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=146801&pageIndex=1#reply