Bug 845206

Summary: Seam Error when trying to edit
Product: [Community] PressGang CCMS Reporter: Lee Newson <lnewson>
Component: Web-UIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: belong, cbredesen, lnewson, thildred, topic-tool-list
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-01 23:34:16 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:
Embargoed:

Description Lee Newson 2012-08-02 09:08:02 UTC
How reproducible:
Always

Steps to Reproduce:
1. Open any topic
2. Change the revision of the topic
3. Type the same topic number into the quick change box
4. Click Edit
  
Actual results:
A seam error appears about not being able to convert a string to a number.

Expected results:
The topic edit page opens

Comment 1 belong 2012-09-10 01:37:42 UTC
Also reproducible this way:

1. Open any topic (with older revisions)
2. Change to older revision
3. Click on 'Edit Latest Version'

Actual Result:
Cannot convert 61308 of type class java.lang.String to class java.lang.Number

Expected Result:
The topic edit page opens

Comment 2 Lee Newson 2012-09-10 02:04:49 UTC
Fixed in build 20120910-1150.

Cause:

The Topic Revision variable wasn't being reset when clicking the "Edit Latest Version" button.

Consequence:

Seam would throw an error about not being able to convert the String to an Integer.

Fix:

Ensure that the topicRevision url parameter is set to nothing (eg. topicRevision=&cid=1) and also make sure that the topicRevision is reset to nothing when editing.