Ticket #794 (closed defect: fixed)
Improperly setup type table causes php error
| Reported by: | sp | Owned by: | somebody |
|---|---|---|---|
| Priority: | important | Milestone: | 2.1 |
| Component: | Codegen | Version: | 2.0 HEAD |
| Keywords: | invalid argument | Cc: |
Description
If you set up a type table and do not give the "name" column a unique index, you get a php error in the main.tpl file that says "Invalid argument supplied for foreach()". Older versions of qcubed completed the codegen, and showed a friendly error message at the bottom of the codegen results page stating that the "second column is not a unique VARCHAR". To recreate this problem in the test database, delete the unique index on the "name" column in the project_status_type table and then run codegen.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

