Closed (fixed)
Project:
Frequently Asked Questions
Version:
4.7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Sep 2007 at 06:20 UTC
Updated:
11 Oct 2007 at 21:12 UTC
For all drupal installations where a prefix for the table names has been configured, the {faq} notation has to be used instead of faq everywhere the database is accessed.
I've made following changes to the faq.module file to get the module running on my site using table prefixes:
130c130
< db_query('INSERT INTO faq (fid, weight) VALUES(%d, %d)', $node->nid, $node->weight);
---
> db_query('INSERT INTO {faq} (fid, weight) VALUES(%d, %d)', $node->nid, $node->weight);
137c137
< db_query('UPDATE faq SET weight = %d WHERE fid = %d', $node->weight, $node->nid);
---
> db_query('UPDATE {faq} SET weight = %d WHERE fid = %d', $node->weight, $node->nid);
| Comment | File | Size | Author |
|---|---|---|---|
| faq.module.diff | 386 bytes | rc_phil |
Comments
Comment #1
stella commentedfixed and added to CVS.
Cheers,
Stella
Comment #2
stella commentedReleased in 4.7.x-2.1.
Cheers,
Stella
Comment #3
(not verified) commented