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

(-)a/C4/Creators/Template.pm (-3 / +2 lines)
Lines 166-172 sub save { Link Here
166
        foreach my $key (keys %{$self}) {
166
        foreach my $key (keys %{$self}) {
167
            next if ($key eq 'template_id') || ($key eq 'template_stat') || ($key eq 'creator');
167
            next if ($key eq 'template_id') || ($key eq 'template_stat') || ($key eq 'creator');
168
            push (@params, $self->{$key});
168
            push (@params, $self->{$key});
169
            $query .= "$key=?, ";
169
            $query .= "`$key`=?, ";
170
        }
170
        }
171
        $query = substr($query, 0, (length($query)-2));
171
        $query = substr($query, 0, (length($query)-2));
172
        push (@params, $self->{'template_id'}, $self->{'creator'});
172
        push (@params, $self->{'template_id'}, $self->{'creator'});
Lines 186-192 sub save { Link Here
186
        foreach my $key (keys %{$self}) {
186
        foreach my $key (keys %{$self}) {
187
            next if $key eq 'template_stat';
187
            next if $key eq 'template_stat';
188
            push (@params, $self->{$key});
188
            push (@params, $self->{$key});
189
            $query .= "$key, ";
189
            $query .= "`$key`, ";
190
        }
190
        }
191
        $query = substr($query, 0, (length($query)-2));
191
        $query = substr($query, 0, (length($query)-2));
192
        $query .= ") VALUES (";
192
        $query .= ") VALUES (";
193
- 

Return to bug 23289