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

(-)a/Koha/Schema/Result/Branch.pm (-1 / +16 lines)
Lines 999-1004 __PACKAGE__->has_many( Link Here
999
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25
999
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-03 13:13:25
1000
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A
1000
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiH1QNlDqKcq9GeM85Pu0A
1001
1001
1002
__PACKAGE__->has_many(
1003
    "additional_field_values",
1004
    "Koha::Schema::Result::AdditionalFieldValue",
1005
    sub {
1006
        my ($args) = @_;
1007
1008
        return {
1009
            "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.branchcode" },
1010
1011
            "$args->{foreign_alias}.field_id" =>
1012
                { -in => \'(SELECT id FROM additional_fields WHERE tablename="branches")' },
1013
        };
1014
    },
1015
    { cascade_copy => 0, cascade_delete => 0 },
1016
);
1017
1002
__PACKAGE__->add_columns(
1018
__PACKAGE__->add_columns(
1003
    '+pickup_location' => { is_boolean => 1 },
1019
    '+pickup_location' => { is_boolean => 1 },
1004
    '+public'          => { is_boolean => 1 }
1020
    '+public'          => { is_boolean => 1 }
1005
- 

Return to bug 38663