Ticket #840 (closed defect: fixed)
Incorrect draft filenames
| Reported by: | vaibhav | Owned by: | somebody |
|---|---|---|---|
| Priority: | must | Milestone: | 2.1.1 |
| Component: | Codegen | Version: | 2.1.0 Stable |
| Keywords: | drafts incorrect filename | Cc: |
Description
If you create a table with name like item_category_l1 then the draft file that gets created for Create new action would have the 'Cancel' button working erroneously. It tries to redirect to item_category_l1_list.php (which is correct, as that is what the name should be according to the table name) but the file does not exist. The reason is that the draft file creation during the codegen run will generate files using QConvertNotation::UnderscoreFromCamelCase($objTable->ClassName while the links for redirection are created using the strtolower($objTable->Name) call. The attached patch fixes this.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

