Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 78912e55

Von Jan Büren vor fast 10 Jahren hinzugefügt

  • ID 78912e55533a48109adc11e798101b29e174728d
  • Vorgänger 38f974a2
  • Nachfolger 991d16bb

Konditional RecordLink save aufrufen (analog zu ar auch für oe)

Unterschiede anzeigen:

SL/IS.pm
1215 1215
  }
1216 1216

  
1217 1217
  # Link this record to the records it was created from.
1218
  RecordLinks->create_links('dbh'        => $dbh,
1219
                            'mode'       => 'ids',
1220
                            'from_table' => 'oe',
1221
                            'from_ids'   => $form->{convert_from_oe_ids},
1222
                            'to_table'   => 'ar',
1223
                            'to_id'      => $form->{id},
1224
    );
1225
  delete $form->{convert_from_oe_ids};
1218
  if ($form->{convert_from_oe_ids}) {
1219
    RecordLinks->create_links('dbh'        => $dbh,
1220
                              'mode'       => 'ids',
1221
                              'from_table' => 'oe',
1222
                              'from_ids'   => $form->{convert_from_oe_ids},
1223
                              'to_table'   => 'ar',
1224
                              'to_id'      => $form->{id},
1225
      );
1226
    delete $form->{convert_from_oe_ids};
1227
  }
1226 1228

  
1227 1229
  my @convert_from_do_ids = map { $_ * 1 } grep { $_ } split m/\s+/, $form->{convert_from_do_ids};
1228 1230

  

Auch abrufbar als: Unified diff