Bug 1007198

Summary: Wrong options shown when setting writer tag
Product: [Community] PressGang CCMS Reporter: mmurray
Component: Web-UIAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact: mmurray
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.1CC: lnewson
Target Milestone: ---   
Target Release: 1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 23:49:41 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:
Attachments:
Description Flags
Assigned writer option starts with Cyberdine but this should not be an option for JBDS none

Description mmurray 2013-09-12 05:49:15 UTC
Created attachment 796626 [details]
Assigned writer option starts with Cyberdine but this should not be an option for JBDS

Description of problem:
Sometime default/common options are shown for tag field values rather then project/product values.


Version-Release number of selected component (if applicable):
Build 201309081012


How reproducible: 100%


Steps to Reproduce:
1. Within web-UI view a content spec (e.g., JBDS getting started guide)
2. Click 'tags' > initially fields options set to common, assigned writer, cyerdine
3. Change common to JBDS > final field displays mmurray (all good)
4. Change assigned writer to book > final field displays Internet relay ... (all good)
5. Change book back to assigned writer > final field displays Cyberdine, so the common assigned writer options, not the JBDS assigned writer options (not good)

Comment 1 Lee Newson 2013-09-12 05:59:27 UTC
Verified, this is also a bug in the Topic editor.

Comment 2 Lee Newson 2013-09-13 01:19:17 UTC
Fixed in Build 201309131105.

The problem was caused by the way ValueListBoxes have to be set and a problem with the equals method. For whatever strange reason you need to set the selected value before assigning the list of possible values. As such when the list is loaded the category is set to "Assigned Writer", however at this stage because the old equals method would set the new category as the same as the old one the tags would reference the old list of tags and not the new one.

As such I've fixed the equals method so that it will correctly set the right category/project, as well as a few other minor things that had been done to try and work with the above situation.

Note: This version is currently live on the PressGang Next instance.

Comment 3 mmurray 2013-09-13 01:29:03 UTC
Fix verified: Build 201309131104

Comment 4 Lee Newson 2013-09-13 01:32:16 UTC
Thanks Michelle, and yeah I typed the wrong build number sorry. It should have been 201309131104.