Skip to content
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

Layers widget requires selected content #501

Closed
alansemenov opened this issue Apr 8, 2022 · 0 comments
Closed

Layers widget requires selected content #501

alansemenov opened this issue Apr 8, 2022 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@alansemenov
Copy link
Member

Layers widget produces an error when no content is selected.

It should correctly handle this and give "No content selected" message inside the panel, like other widgets.

Caused by: com.enonic.xp.resource.ResourceProblemException: No method or field with name 'contentId' on line 3
	at com.enonic.xp.resource.ResourceProblemException$Builder.build(ResourceProblemException.java:131)
	at com.enonic.lib.mustache.MustacheProcessor.handleError(MustacheProcessor.java:101)
	at com.enonic.lib.mustache.MustacheProcessor.handleError(MustacheProcessor.java:88)
	at com.enonic.lib.mustache.MustacheProcessor.execute(MustacheProcessor.java:66)
	at com.enonic.lib.mustache.MustacheProcessor.process(MustacheProcessor.java:48)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$6762$558AA$mustache.L:1#render(com.enonic.app.contentstudio.plus:/lib/mustache.js:25)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$6758$250A$layers.L:1#renderWidgetView(com.enonic.app.contentstudio.plus:/admin/widgets/layers/layers.js:27)
	at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$6757$187A$layers.L:1#handleGet(com.enonic.app.contentstudio.plus:/admin/widgets/layers/layers.js:6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants