Closed (fixed)
Project:
Nodequeue
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2010 at 15:10 UTC
Updated:
10 Jan 2011 at 20:20 UTC
When creating a nodequeue and leaving 'Link "add to queue" text' empty, a SQL error is thrown:
General error: 1366 Incorrect integer value: '' for column 'show_in_links' at row 1
in nodequeue_save() line 1936
This is from HEAD, last updated: October 7, 2010.
Proposed patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| nodequeue-d7-db-insert-errors-fix.patch | 497 bytes | brenk28 |
Comments
Comment #1
recidive commentedThe patch fixes the issue. Although I'm not sure this is the best way to fix this.
We may want to add constants to 1 and 0 just like core does in Drupal 7 for e.g. node.sticky.
It's a shame we don't have boolean fields and have to reinvent the FALSE/TRUE wheel.
Comment #2
recidive commentedOk, better with this patch than without it.
Comment #3
HaKi commentedi applied the patch now i get this
Comment #4
ezra-g commentednodequeue-d7-db-insert-errors-fix.patch queued for re-testing.
Comment #5
ezra-g commentedCommitted to the 7.x-2.x branch. Thanks!
http://drupal.org/cvs?commit=470050