Menu

#344 sort key will accept any caracter (should be only an int)

open
nobody
None
5
2005-12-02
2005-12-02
Jd
No

The 'sort key' form in any of the create/edit windows
(status, resolution, severities, etc) will accept any
string.

If you input anything other then an integer, the
database insert/update will fail.

There should be some validation on this, either
client-side (javascript) or server-side or both.

Here is the db error I get:

DB Error: no such field
insert into phpbt_resolution (resolution_id,
resolution_name, resolution_desc, sort_order) values
(10, 'myResolution', 'myResolutionDescription', bou)
[nativecode=ERROR: column "bou" does not exist]
==================================================

Discussion


Log in to post a comment.