#569: QCT view/edit link can direct to "Error: Invalid ticket number" ---------------------------+----------------------- Reporter: rjollos | Owner: rjollos Type: defect | Status: closed Priority: blocker | Milestone: Release 6 Component: multiproduct | Version: Resolution: fixed | Keywords: qct ---------------------------+----------------------- Changes (by rjollos):
* status: accepted => closed * resolution: => fixed Old description: > To reproduce: > 1. Create two products, `prod1` and `prod2`. > 1. Set `[multiproduct] default_product_prefix = prod1`. > 1. Navigate to `/products/prod2` > 1. Create a ticket via //Quick Create Ticket//. > 1. Follow the `View / Edit` link in the balloon that appears after > creating the ticket. > > You will land on an error page with: > > **Error: Invalid ticket number** > Ticket 1 does not exist. > > The URL will be `/products/prod2/ticket/1`. > > Navigate to `/products/prod1/ticket/1` to find the ticket, replacing `1` > with the number of the ticket that was created, if necessary. New description: To reproduce: 1. Create two products, `prod1` and `prod2`. 1. Set `[ticket] default_product = prod1`. 1. Navigate to `/products/prod2` 1. Create a ticket via //Quick Create Ticket//. 1. Follow the `View / Edit` link in the balloon that appears after creating the ticket. You will land on an error page with: **Error: Invalid ticket number** Ticket 1 does not exist. The URL will be `/products/prod2/ticket/1`. Navigate to `/products/prod1/ticket/1` to find the ticket, replacing `1` with the number of the ticket that was created, if necessary. -- Comment: I think that part of this report is invalid since `[ticket] default_product` isn't an option that should be specified. The changes in [1496179] and [1496220] should prevent the possibility of this configuration error though. ---- (In [1496179]) Refs #569: * If `[multiproduct] default_product_prefix` is invalid (set to a non- existing prefix), tickets created at global scope will use the first product in the sorted list. * The fields of tickets created through the QCT dialog now default to the values specified in the `[ticket]` section of trac.ini. For fields displayed in the dialog (i.e. those specified in `[ticket] quick_create_fields`, the select now defaults to the proper value. Fields not displayed in the dialog are passed as hidden form fields. ---- (In [1496220]) Refs #569: * Added `product` to default `quick_create_fields`. * Ensure that the `product` select is properly populated, even when `[multiproduct] default_product_prefix` is invalid. -- Ticket URL: <https://issues.apache.org/bloodhound/ticket/569#comment:11> Apache Bloodhound <https://issues.apache.org/bloodhound/> The Apache Bloodhound issue tracker