From: Moritz B. <m.b...@li...> - 2014-12-09 09:47:30
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "kivitendo ERP". The branch master has been updated via 273b5e046f1dab732ece657a756ada58d7669b9d (commit) from f9fdf190e4050f7eb8009467a47918340a9b975e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 273b5e046f1dab732ece657a756ada58d7669b9d Author: Moritz Bunkus <m.b...@li...> Date: Tue Dec 9 10:46:44 2014 +0100 CustomerVendorPicker: ref($value) nur prüfen, wenn es tatsächlich ein Objekt ist …und nicht schlicht die ID eines Objektes. ----------------------------------------------------------------------- Summary of changes: SL/Presenter/CustomerVendor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Full change list: diff --git a/SL/Presenter/CustomerVendor.pm b/SL/Presenter/CustomerVendor.pm index 4a37029..9045cda 100644 --- a/SL/Presenter/CustomerVendor.pm +++ b/SL/Presenter/CustomerVendor.pm @@ -40,7 +40,7 @@ sub customer_vendor_picker { my ($self, $name, $value, %params) = @_; croak 'Unknown "type" parameter' unless $params{type} =~ m{^(?:customer|vendor)$}; - croak 'Unknown value class' if $value && (ref($value) !~ m{^SL::DB::(?:Customer|Vendor)$}); + croak 'Unknown value class' if $value && ref($value) && (ref($value) !~ m{^SL::DB::(?:Customer|Vendor)$}); if ($value && !ref $value) { my $class = $params{type} eq 'customer' ? 'SL::DB::Manager::Customer' : 'SL::DB::Manager::Vendor'; hooks/post-receive -- kivitendo ERP |