SemicolonAcademy / ci-cms

Automatically exported from code.google.com/p/ci-cms
Other
0 stars 0 forks source link

Default value #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
During the pre-release, please update your files with the latest svn before
reporting a defect
-----

What steps will reproduce the problem?
1. When i add new categories and news, field ID and PID can't include, and
show error.Exp:

A Database Error Occurred

Error Number: 1366

Incorrect integer value: '' for column 'pid' at row 1

UPDATE `ci_news_cat` SET `id` = '3', `pid` = '', `title` = 'Test', `icon` =
0, `desc` = '

:-S
', `date` = 0, `username` = 0, `lang` = 'vn', `weight` = 0, `status` = '1',
`acces` = 0, `uri` = 'test' WHERE `id` = '3'

How to fix, i can unset one to one field in database.
Thanks.

Original issue reported on code.google.com by mr.thachvinh@gmail.com on 27 Dec 2009 at 12:59