]
George Gastaldi updated FORGE-2160:
-----------------------------------
Component/s: Projects
(was: UI - API)
Projects must check the current selection instead of the initial
selection
--------------------------------------------------------------------------
Key: FORGE-2160
URL:
https://issues.jboss.org/browse/FORGE-2160
Project: Forge
Issue Type: Enhancement
Components: Projects
Affects Versions: 2.12.3.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.12.4.Final
After using a UIContext to create a
{{java.lang.IllegalStateException: A project is required in the current context}}
This is because Projects uses the getInitialSelection() to determine the current project.
It should use getSelection(), which fallbacks to getInitialSelection() if not provided.