Project

General

Profile

Actions

Defect #935

closed

when bulk editing, setting "Assigned to" to "nobody" causes an sql error

Added by Marc Horowitz about 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
Start date:
2008-03-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

at least under postgres:

ActiveRecord::StatementInvalid (PGError: ERROR:  invalid input syntax for integer: "none" 
: SELECT * FROM users WHERE (users."id" = 'none')  LIMIT 1):

I've included a patch which fixes this problem, and as a bonus, allows setting the version to "none" as well, using a similar pattern to assigned_to.


Files

none.diff (2.7 KB) none.diff Marc Horowitz, 2008-03-26 21:04
Actions

Also available in: Atom PDF