Bug 1324468

Summary: New item menu - no project selected, all items enabled after perspective reset
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: lpetrovi
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:35:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zuzana Krejčová 2016-04-06 11:54:48 UTC
Description of problem:
In a specific case, it is still possible to have all items/asset types in the New Item menu enabled, even if there is no project selected in the project explorer. In this case though, there should be only the 'Project' item available, all others should be disabled.


Version-Release number of selected component (if applicable):
BxMS 6.3.0 ER2


Steps to Reproduce:
1. In administration, create a new org. unit and a new repo in this org. unit. (There should be no project inside this repo.)
2. Go to project authoring and in project explorer, select the newly created org.unit and repo.
3. Reset the perspective. (suitcase-like button in the upper-right corner)
4. (You should now still have the new org. unit and repo selected.) Click the 'New Item' button.
5. Mouse over the items in the menu.
6. Select some asset type, e.g. a DRL, and try to create it.


Actual results:
Step 5. All items are enabled.
Step 6. The package dropdown is empty (as expected), when you confirm the New Item modal, you get a new Error modal with "Path in which to create new resource is missing. Please enter."


Expected results:
Step 5. Only project item is enabled.
Step 6. Should not be reachable, but since it still might be, the text should be correct - something like "... missing. Please enter it." or "Package in which .. missing. Please select it."