projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a823f2b
)
Typo in Fehlermeldung
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Fri, 18 May 2018 12:44:17 +0000
(14:44 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 28 May 2018 09:36:27 +0000
(11:36 +0200)
SL/DB/Order.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
6baa0e2
..
3eb2078
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-202,7
+202,7
@@
sub new_from {
my ($class, $source, %params) = @_;
croak("Unsupported source object type '" . ref($source) . "'") unless ref($source) eq 'SL::DB::Order';
my ($class, $source, %params) = @_;
croak("Unsupported source object type '" . ref($source) . "'") unless ref($source) eq 'SL::DB::Order';
- croak("A destination type must be given
parameter")
unless $params{destination_type};
+ croak("A destination type must be given
as parameter")
unless $params{destination_type};
my $destination_type = delete $params{destination_type};
my $src_dst_allowed = ('sales_quotation' eq $source->type && 'sales_order' eq $destination_type)
my $destination_type = delete $params{destination_type};
my $src_dst_allowed = ('sales_quotation' eq $source->type && 'sales_order' eq $destination_type)