View | Details | Raw Unified | Return to bug 23655
Collapse All | Expand All

(-)a/about.pl (-7 / +6 lines)
Lines 474-485 $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; Link Here
474
474
475
    $bad_relationships_count = $bad_relationships_count->[0]->[0];
475
    $bad_relationships_count = $bad_relationships_count->[0]->[0];
476
476
477
    my @existing_relationships = $dbh->selectall_array(q{
477
    my @existing_relationships = $dbh->selectall_arrayref(q{
478
        SELECT DISTINCT(relationship)
478
          SELECT DISTINCT(relationship)
479
        FROM (
479
          FROM (
480
            SELECT relationship FROM borrower_relationships WHERE relationship IS NOT NULL
480
              SELECT relationship FROM borrower_relationships WHERE relationship IS NOT NULL
481
            UNION ALL
481
              UNION ALL
482
            SELECT relationship FROM borrowers WHERE relationship IS NOT NULL) a
482
              SELECT relationship FROM borrowers WHERE relationship IS NOT NULL) a
483
    });
483
    });
484
484
485
    my %valid_relationships = map { $_ => 1 } split( /,|\|/, C4::Context->preference('borrowerRelationship') );
485
    my %valid_relationships = map { $_ => 1 } split( /,|\|/, C4::Context->preference('borrowerRelationship') );
486
- 

Return to bug 23655