From: Moritz Bunkus Date: Mon, 25 Oct 2010 14:29:03 +0000 (+0200) Subject: Flexiblere Verwendung von get_first X-Git-Tag: release-2.6.3~61^2~9^2~3^2~9 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/0aa55515f3c2cdce122dda325f48c9a3cb6a600a Flexiblere Verwendung von get_first --- diff --git a/SL/DB/Helper/Manager.pm b/SL/DB/Helper/Manager.pm index 529053338..8ebc362e2 100644 --- a/SL/DB/Helper/Manager.pm +++ b/SL/DB/Helper/Manager.pm @@ -20,6 +20,7 @@ sub find_by { sub get_first { shift->get_all( + @_, limit => 1, )->[0]; }