https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17964

--- Comment #14 from Marcel de Rooy <m.de.r...@rijksmuseum.nl> ---
And as a side note: Is this code in get_tt_params really correct:
            else {    # $ref eq 'ARRAY'
                my $object;
                if ( @{ $tables->{$table} } == 1 ) {    # Param is a single key
                    $object = $module->search( { $pk => $tables->{$table} }
)->next();
                }
                else {                                  # Params are mutliple
foreign keys
                    croak "Multiple foreign keys (table $table) should be
passed using an hashref";
                }
I was thinking that I could pass a few primary keys in an array (see historical
code). But this code croaks on "multiple fk's". Plus a typo :)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to