X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FHelper%2FActsAsList.pm;h=abe11c06338ccf15c8f989b1e8832dc0c97c7115;hb=fca946068709229a086497380cdc62d874a8e795;hp=ee49f4aed2251e62d61d3c10e697e886c74ab98b;hpb=96670fe82a38116ac10592a6ccbd34800f8ad9f8;p=kivitendo-erp.git diff --git a/SL/DB/Helper/ActsAsList.pm b/SL/DB/Helper/ActsAsList.pm index ee49f4aed..abe11c063 100644 --- a/SL/DB/Helper/ActsAsList.pm +++ b/SL/DB/Helper/ActsAsList.pm @@ -7,6 +7,7 @@ our @EXPORT = qw(move_position_up move_position_down add_to_list remove_from_lis get_previous_in_list get_next_in_list get_full_list); use Carp; +use SL::X; my %list_spec; @@ -145,7 +146,7 @@ sub reorder_list { my $sth = $self->db->dbh->prepare($query) || die $self->db->dbh->errstr; foreach my $new_position (1 .. scalar(@ids)) { - $sth->execute($new_position, $ids[$new_position - 1]) || die $sth->errstr; + $sth->execute($new_position, $ids[$new_position - 1]) || die SL::X::DBUtilsError->new(error => $sth->errstr); } $sth->finish;