=== modified file 'includes/actions.inc'
--- includes/actions.inc	2008-10-10 08:49:51 +0000
+++ includes/actions.inc	2008-11-08 07:20:02 +0000
@@ -323,7 +323,7 @@ function actions_save($function, $type, 
   // aid is the callback for singleton actions so we need to keep a
   // separate table for numeric aids.
   if (!$aid) {
-    $aid = db_insert('actions_aid')->execute();
+    $aid = db_insert('actions_aid')->useDefaults(array('aid'))->execute();
   }
 
   db_merge('actions')

