Bug #163
Opening a new project ticket fails on SQL insert.
| Status: | Closed | Start: | 08/08/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 100% |
||
| Category: | Projects | |||
| Target version: | 0.7.3 | |||
| Resolution: | fixed |
Description
Reproduce: Select Projects and add a new ticket.
Error message:
There was an SQL error: Incorrect integer value: '' for column 'close_date' at row 1 - INSERT INTO `AI_tickets` (`id`, `user_id`, `created_by`, `project_id`, `description`, `creation_date`, `close_date`, `complete`, `billable`, `invoiced`, `invoice_id`, `operation_type_id`, `rate`) VALUES (NULL, '1', '1', '1', 'Setup website for prez.', 1249741848, '', 0, '1', 0, NULL, '1', 0)
./htdocs/argentumsvn/system/libraries/drivers/Database/Mysql.php [392]:
Setup: Windows Vista, Apache 2.2.6, PHP 5.2.6, MySQL 5.1.0, argentum svn trunk
Proposed solution: Patch attached. (patch04.diff)
Inital _dates must be set to integer values in the model.
in ./models/ticket.php
Associated revisions
Fixing #163.
History
Updated by Jeremy Bush over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset r260.
Updated by Jeremy Bush over 2 years ago
- Resolution set to fixed