Posted by vflirt on November 5, 2008 at 9:21am
Jump to:
| Project: | Drupal core |
| Version: | 6.6 |
| Component: | aggregator.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
In function "aggregator_save_category" in aggregator.module when you insert aggregator category you are trying to get the last insert id from nonexisting database table:
db_query("INSERT INTO {aggregator_category} (title, description, block) VALUES ('%s', '%s', 5)", $edit['title'], $edit['description']);
$link_path .= db_last_insert_id('aggregator', 'cid');
$op = 'insert';
As you see the table is : "aggregator_category" so you need to call db_last_insert_id('aggregator_category', 'cid');
Comments
#1
Is this still an issue using current Drupal 6?
#2
Looks fixed. It is easy to check in the aggregator.module file in the release you donwloaded.
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.