Closed (fixed)
Project:
Drupal core
Component:
taxonomy.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2005 at 21:16 UTC
Updated:
10 Oct 2005 at 22:20 UTC
I've found a problem when using postgresql: when going to admin/forum for the first time the module adds a taxonomy term or category "Forum", using taxonomy_save_vocabulary() function [it's done in _forum_get_vid()].
But it does not set "tags" in the array and then in taxonomy_save_vocabulary() you get error in sql:
pg_query(): Query failed: ERROR: invalid input syntax for integer: ""
query: INSERT INTO vocabulary (name, description, help, multiple, required, hierarchy, relations, tags, weight, module, vid) VALUES ('Forums', '', '', 0, 1, 1, 0, '', 0, 'forum', '1')
I've fixed this by changing taxonomy_save_vocabulary so it check if "tags" is set and if not it sets it to default. This function already does similar checks for "nodes" and "weight".
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_save_vocabulary-tags.diff | 1 KB | Cvbge |
Comments
Comment #1
Cvbge commentedSo I believe this bug renders forum module completly unusable, thus priority critical.
Comment #2
morbus iffFix looks fine to me. Not tested though (no PostgreSQL).
Comment #3
dries commentedCommitted to HEAD. Thanks.
Comment #4
(not verified) commentedComment #5
(not verified) commented