SL::DB::Helper::TransNumberGenerator: alle beteiligten Spalten aufführen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 3 Jun 2015 15:16:26 +0000 (17:16 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 3 Jun 2015 15:17:56 +0000 (17:17 +0200)
SL/DB/Helper/TransNumberGenerator.pm

index c9ed09f..9c65729 100644 (file)
@@ -86,7 +86,7 @@ sub get_next_trans_number {
     dbh                  => $self->db->dbh,
     select               => $number_column,
     tables               => [ $self->meta->table ],
-    columns              => { $self->meta->table => [ $number_column ] },
+    columns              => { $self->meta->table => [ $self->meta->column_names ] },
     query_is_sql         => 1,
     %conditions_for_in_use,
   );