X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/96670fe82a38116ac10592a6ccbd34800f8ad9f8..7cd6d451d97d1f1e7f3c0f9db2de03735dc8c8f0:/SL/DB/Helper/ActsAsList.pm 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;