|
Lines 112-121
sub AddModificationTemplate {
Link Here
|
| 112 |
my $sth = $dbh->prepare("INSERT INTO marc_modification_templates ( name ) VALUES ( ? )"); |
112 |
my $sth = $dbh->prepare("INSERT INTO marc_modification_templates ( name ) VALUES ( ? )"); |
| 113 |
$sth->execute($template_name); |
113 |
$sth->execute($template_name); |
| 114 |
|
114 |
|
| 115 |
$sth = $dbh->prepare("SELECT * FROM marc_modification_templates WHERE name = ?"); |
115 |
my $template_id = $dbh->last_insert_id(undef, undef, 'marc_modification_templates'); |
| 116 |
$sth->execute($template_name); |
|
|
| 117 |
my $row = $sth->fetchrow_hashref(); |
| 118 |
my $template_id = $row->{'template_id'}; |
| 119 |
|
116 |
|
| 120 |
if ($template_id_copy) { |
117 |
if ($template_id_copy) { |
| 121 |
my @actions = GetModificationTemplateActions($template_id_copy); |
118 |
my @actions = GetModificationTemplateActions($template_id_copy); |
| 122 |
- |
|
|