Bug 471827 - catalog should provide reviewers a way to change the "Shipping Information" status back to "No"
Summary: catalog should provide reviewers a way to change the "Shipping Information" s...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Hardware Catalog
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: XINSUN
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-17 01:25 UTC by YangKun
Modified: 2009-02-04 04:42 UTC (History)
1 user (show)

Fixed In Version: 5.3 (hwcert-3.2rh-20090129.0)
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-04 04:42:21 UTC
Embargoed:


Attachments (Terms of Use)
patch fix: (2.30 KB, patch)
2008-12-09 02:44 UTC, sfu@redhat.com
no flags Details | Diff

Description YangKun 2008-11-17 01:25:49 UTC
Description of problem:

One issue about the "Shipping Information:" field in our catalog now is: if someone miss filled this area by accident, the "Current Status:" will be changed to "Yes", and there's no way to change this status back to "No" again. 

Even when I tried to remove all the data in the "Shipping Information:" field and then "save changes", the catalog just replies with:
    ---------------------------------------------------
    Shipping Information Needed
    You must enter shipping information for this certification.
    
    Please press Back and try again. 
    ---------------------------------------------------

catalog should provide reviewers a way to change the "Shipping Information" status back to "No".

Comment 1 sfu@redhat.com 2008-12-09 02:44:28 UTC
Created attachment 326255 [details]
patch fix:

1.Modify the file of bug/tam_ack.html.tmpl to display the "Shipping Information" status as follows:
     [% IF bug.reporter.login == user.login %]
           No <input type="radio" name="shipped_to_rh" value="0" checked   onchange="shippingTextBox();">
           Yes <input type="radio" name="shipped_to_rh" value="1" onchange="shippingTextBox(); document.changeform.shipping_info.focus();">
     [% ELSIF bug.shipped_to_rh %]
          Yes
          <input type="hidden" name="shipped_to_rh" value="1">  
     [% ELSE %]
           No
           <input type="hidden" name="shipped_to_rh" value="0">
 
2.Modify the file of process.cgi to add the values of "shipped_to_th" and "shipping_info" into database correctly.


Test link is http://bugdev.devel.redhat.com/hwcert-xisun5/show.cgi?id=465648

Please review. 

Best Regards!
Fuyan

Comment 3 Rob Landry 2008-12-12 04:26:10 UTC
We need to add a hwcertlog item for this to record when things were changed and what they were changed to/from.  IIRC this field is in the hwcert db so we won't be able to use the bz logging, we'll have to expand the hwcert logging.

Comment 6 XINSUN 2009-01-06 02:07:33 UTC
Test well and checked in, change to MODIFIED.


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