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

(-)a/Koha/Schema/Result/Ticket.pm (-1 / +31 lines)
Lines 266-271 __PACKAGE__->has_many( Link Here
266
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36
266
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-02 11:36:36
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8bWiSb7hXPFYRzRzrVG3kw
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8bWiSb7hXPFYRzRzrVG3kw
268
268
269
__PACKAGE__->has_many(
270
    "additional_field_values",
271
    "Koha::Schema::Result::AdditionalFieldValue",
272
    sub {
273
        my ($args) = @_;
274
 
275
        return {
276
            "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.id" },
277
 
278
            "$args->{foreign_alias}.field_id" =>
279
                { -in => \'(SELECT id FROM additional_fields WHERE tablename="tickets")' },
280
        };
281
    },
282
    { cascade_copy => 0, cascade_delete => 0 },
283
);
284
 
285
__PACKAGE__->has_many(
286
    "extended_attributes",
287
    "Koha::Schema::Result::AdditionalFieldValue",
288
    sub {
289
        my ($args) = @_;
290
 
291
        return {
292
            "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.id" },
293
 
294
            "$args->{foreign_alias}.field_id" =>
295
                { -in => \'(SELECT id FROM additional_fields WHERE tablename="tickets")' },
296
        };
297
    },
298
    { cascade_copy => 0, cascade_delete => 0 },
299
);
269
300
270
# You can replace this text with custom code or comments, and it will be preserved on regeneration
301
# You can replace this text with custom code or comments, and it will be preserved on regeneration
271
1;
302
1;
272
- 

Return to bug 34324