Bug 845206 - Seam Error when trying to edit
Summary: Seam Error when trying to edit
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-02 09:08 UTC by Lee Newson
Modified: 2014-08-04 22:27 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-01 23:34:16 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.