Commit 313b25ea authored by Penny Leach's avatar Penny Leach
Browse files

random data needs to obey authorformat in view

parent 7ecfcebc
......@@ -324,9 +324,9 @@ sub insert_random_views {
$title =~ s/[\x80-\xff]//g;
$description =~ s/[\x80-\xff]//g;
$self->{dbh}->do('INSERT INTO ' . $prefix . 'view (title, description, owner, template, startdate, stopdate, ctime, mtime, atime)
VALUES(?, ?, ?, ?, current_timestamp, current_timestamp, current_timestamp, current_timestamp, current_timestamp)', undef,
$title, $description, $user_id, $template_id);
$self->{dbh}->do('INSERT INTO ' . $prefix . 'view (title, authorformat, description, owner, template, startdate, stopdate, ctime, mtime, atime)
VALUES(?, ?, ?, ?, ?, current_timestamp, current_timestamp, current_timestamp, current_timestamp, current_timestamp)', undef,
$title, 'firstnamelastname', $description, $user_id, $template_id);
my $view_id = $self->{dbh}->last_insert_id(undef, undef, $prefix . 'view', undef);
$self->{dbh}->do('INSERT INTO ' . $prefix . 'view_artefact (view, artefact, block, ctime)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment