Revision 78912e55
Von Jan Büren vor etwa 10 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
Common::webdav_folder($form);
|
||
|
||
# Link this record to the records it was created from.
|
||
RecordLinks->create_links('dbh' => $dbh,
|
||
'mode' => 'ids',
|
||
'from_table' => 'oe',
|
||
'from_ids' => $form->{convert_from_oe_ids},
|
||
'to_table' => 'ap',
|
||
'to_id' => $form->{id},
|
||
);
|
||
delete $form->{convert_from_oe_ids};
|
||
if ($form->{convert_from_oe_ids}) {
|
||
RecordLinks->create_links('dbh' => $dbh,
|
||
'mode' => 'ids',
|
||
'from_table' => 'oe',
|
||
'from_ids' => $form->{convert_from_oe_ids},
|
||
'to_table' => 'ap',
|
||
'to_id' => $form->{id},
|
||
);
|
||
delete $form->{convert_from_oe_ids};
|
||
}
|
||
|
||
my @convert_from_do_ids = map { $_ * 1 } grep { $_ } split m/\s+/, $form->{convert_from_do_ids};
|
||
if (scalar @convert_from_do_ids) {
|
SL/IS.pm | ||
---|---|---|
}
|
||
|
||
# Link this record to the records it was created from.
|
||
RecordLinks->create_links('dbh' => $dbh,
|
||
'mode' => 'ids',
|
||
'from_table' => 'oe',
|
||
'from_ids' => $form->{convert_from_oe_ids},
|
||
'to_table' => 'ar',
|
||
'to_id' => $form->{id},
|
||
);
|
||
delete $form->{convert_from_oe_ids};
|
||
if ($form->{convert_from_oe_ids}) {
|
||
RecordLinks->create_links('dbh' => $dbh,
|
||
'mode' => 'ids',
|
||
'from_table' => 'oe',
|
||
'from_ids' => $form->{convert_from_oe_ids},
|
||
'to_table' => 'ar',
|
||
'to_id' => $form->{id},
|
||
);
|
||
delete $form->{convert_from_oe_ids};
|
||
}
|
||
|
||
my @convert_from_do_ids = map { $_ * 1 } grep { $_ } split m/\s+/, $form->{convert_from_do_ids};
|
||
|
Auch abrufbar als: Unified diff
Konditional RecordLink save aufrufen (analog zu ar auch für oe)