Revision 51a06416
Von Tamino Steinert vor 12 Monaten hinzugefügt
SL/DB/Helper/RecordLink.pm | ||
---|---|---|
21 | 21 |
my %allowed_linked_record_items = map {$_ => 1} @$allowed_linked_record_items; |
22 | 22 |
|
23 | 23 |
return 1 unless my $from_record_ids = $self->{RECORD_ID()}; |
24 |
my @from_record_ids = split / /, $from_record_ids; |
|
24 | 25 |
|
25 | 26 |
my $from_record_type = $self->{RECORD_TYPE_REF()}; |
26 | 27 |
unless ($allowed_linked_records{$from_record_type}) { |
27 | 28 |
croak("Not allowed @{[ RECORD_TYPE_REF ]}: $from_record_type"); |
28 | 29 |
} |
29 | 30 |
|
30 |
for my $id (listify($from_record_ids)) {
|
|
31 |
for my $id (@from_record_ids) {
|
|
31 | 32 |
my $from_record = $from_record_type->new(id => $id)->load; |
32 | 33 |
$from_record->link_to_record($self); |
33 | 34 |
} |
Auch abrufbar als: Unified diff
S:D:H:RecordLink: FIX: mehrere Ursprungsbelege unterstützen