#569: QCT view/edit link can direct to "Error: Invalid ticket number"
---------------------------+-----------------------
  Reporter:  rjollos       |      Owner:  rjollos
      Type:  defect        |     Status:  new
  Priority:  blocker       |  Milestone:  Release 6
 Component:  multiproduct  |    Version:
Resolution:                |   Keywords:  qct
---------------------------+-----------------------

Comment (by rjollos):

 The `base_url` is obtained from the `data-target` attribute of the `#qct-
 create` button. It appears to me that `data-target` will always contain
 the `base_url` for the product in the current scope. In the dev
 environment setup the value will typically be `/sqlite`,
 `/sqlite/products/@` or `/sqlite/products/<product>`.

 The solution I've implemented is to parse the global `base_url` from
 `data-target` and also pass the `product` to the //ticket create//
 callback. With that information, the proper `href` for the newly created
 ticket can be constructed.

 Let me know if you see any issues with how I've implemented, or
 possibilities for simplifying it through refactoring.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/569#comment:13>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to