From e3a83f49048717d0f519e2f760ef2988eb0824e0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 17 Feb 2015 13:36:01 +0100 Subject: [PATCH] =?utf8?q?SL::DB::Part:=20displayable=5Fname=20als=20Alias?= =?utf8?q?=20f=C3=BCr=20long=5Fdescription?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Für einfachere Verwendung mit anderen Objekten wie ::Customer und ::Vendor. --- SL/DB/Part.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 2a74b74c6..e4148baab 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -209,6 +209,8 @@ sub displayable_name { join ' ', grep $_, map $_[0]->$_, qw(partnumber description); } +sub displayable_name { goto &long_description; } + 1; __END__ -- 2.20.1