summaryrefslogtreecommitdiff
path: root/lib/VNDB.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDB.pm')
-rw-r--r--lib/VNDB.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VNDB.pm b/lib/VNDB.pm
index 441175cb..810644a2 100644
--- a/lib/VNDB.pm
+++ b/lib/VNDB.pm
@@ -187,6 +187,7 @@ sub new {
%args,
_DB => VNDB::Util::DB->new(@VNDB::DBLOGIN),
_TPL => VNDB::Util::Template->new(%{$args{tplopts}}),
+ cmds => [],
}, $type;
return $me;
@@ -206,6 +207,10 @@ sub get_page {
my $res = $self->ResSetModPerl($r);
$self->DBCommit();
+ # commands have to be executed _after_ the call to DBCommit,
+ # otherwise Multi can't see the new additions
+ $self->RunCmd();
+
return($self, $res);
}