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:
02a5691
)
Bessere Parameterüberprüfung
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 12 Jan 2011 14:59:12 +0000
(15:59 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:15:32 +0000
(16:15 +0100)
SL/DB/Helper/LinkedRecords.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/LinkedRecords.pm
b/SL/DB/Helper/LinkedRecords.pm
index
05f29a5
..
c1d3133
100644
(file)
--- a/
SL/DB/Helper/LinkedRecords.pm
+++ b/
SL/DB/Helper/LinkedRecords.pm
@@
-14,7
+14,7
@@
sub linked_records {
my %params = @_;
my $wanted = $params{direction} || croak("Missing parameter `direction'");
- my $myself = $wanted eq 'from' ? 'to' :
'from'
;
+ my $myself = $wanted eq 'from' ? 'to' :
$wanted eq 'to' ? 'from' : croak("Invalid parameter `direction'")
;
my $my_table = SL::DB::Helpers::Mappings::get_table_for_package(ref($self));