View | Details | Raw Unified | Return to bug 24679
Collapse All | Expand All

(-)a/C4/MarcModificationTemplates.pm (-5 / +1 lines)
Lines 107-116 sub AddModificationTemplate { Link Here
107
  my $sth = $dbh->prepare("INSERT INTO marc_modification_templates ( name ) VALUES ( ? )");
107
  my $sth = $dbh->prepare("INSERT INTO marc_modification_templates ( name ) VALUES ( ? )");
108
  $sth->execute( $template_name );
108
  $sth->execute( $template_name );
109
109
110
  $sth = $dbh->prepare("SELECT * FROM marc_modification_templates WHERE name = ?");
110
  my $template_id = $dbh->last_insert_id(undef, undef, 'marc_modification_templates');
111
  $sth->execute( $template_name );
112
  my $row = $sth->fetchrow_hashref();
113
  my $template_id = $row->{'template_id'};
114
111
115
  if ( $template_id_copy ) {
112
  if ( $template_id_copy ) {
116
    my @actions = GetModificationTemplateActions( $template_id_copy );
113
    my @actions = GetModificationTemplateActions( $template_id_copy );
117
- 

Return to bug 24679