summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/actions.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/actions.inc b/includes/actions.inc
index f9da0bdb5..1d3e2c11f 100644
--- a/includes/actions.inc
+++ b/includes/actions.inc
@@ -323,7 +323,7 @@ function actions_save($function, $type, $params, $desc, $aid = NULL) {
// 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')