-
Bug
-
Resolution: Fixed
-
High
-
6
-
Severity 3 - Minor
-
5
-
Issue Summary
The Select and Object Attribute types within Assets can be configured to provide specific options users can choose to fill the Attribute. This can then be used with an Object Attribute type and using filtering only to display Objects that match the filter.
However when making changes to the Select or Object Attribute, instead of updating the available Objects available, the previous options are left to be selected allowing for incorrect data to be selected.
Steps to Reproduce
Setup the Assets configuration
- Create an Object Type called Locations
- For the Objects add a Select Attribute called State and configure the following options to be selected (click the cogwheel on the Attribute):
- Available
- Unavailable
- Assigned
- Decommissioned
- Set the Attribute's maximum cardinality to unlimited
- Create an Object Type called Laptops
- Reproduce steps 1 to 1.4 from the above to create the State Attribute under this Object
- Add an additional Attribute calling it Locations, this time selecting Object for the type and referencing the Locations Objects
- For the Locations Attribute, set the following AQL Filter:
State = ${State}
Reproduction
- Create a few of Locations Objects and assigning various State Attributes to them ie:
- London - Available, Assigned
- New York - Unavailable
- Sydney - Decommissioned, Unavailable
- Now go to create a Laptop Object and Initially select Unavailable as a State
- The Locations Attribute should show New York and Sydney
- Remove the Unavailable State and add Available
In the above example, all three Locations Objects will be shown, however, only London should be present.
Expected Results
Only show Objects that are associated with the current Select Attribute selections.
Actual Results
Objects filtered for previously are still listed and available to be chosen even though the filter value has changed.
Workaround
Currently, there is no known workaround for this behaviour. A workaround will be added here when available