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

(-)a/Koha/REST/V1/ExtendedAttributeTypes.pm (-1 / +7 lines)
Lines 53-61 sub list { Link Here
53
53
54
    return try {
54
    return try {
55
        my $additional_fields_set = Koha::AdditionalFields->new;
55
        my $additional_fields_set = Koha::AdditionalFields->new;
56
        if ($resource_type) {
56
        if ($resource_type && $resource_to_table->{$resource_type}) {
57
            $additional_fields_set =
57
            $additional_fields_set =
58
                $additional_fields_set->search( { tablename => $resource_to_table->{$resource_type} } );
58
                $additional_fields_set->search( { tablename => $resource_to_table->{$resource_type} } );
59
        } elsif ($resource_type) {
60
            $additional_fields_set =
61
                $additional_fields_set->search( { tablename => $resource_type } );
62
        }else{
63
            $additional_fields_set =
64
              $additional_fields_set->search();
59
        }
65
        }
60
66
61
        return $c->render(
67
        return $c->render(
(-)a/api/v1/swagger/paths/extended_attribute_types.yaml (-1 / +3 lines)
Lines 17-22 Link Here
17
          - basket
17
          - basket
18
          - invoice
18
          - invoice
19
          - order
19
          - order
20
          - subscription
21
          - accountlines:credit
22
          - accountlines:debit
20
      - $ref: "../swagger.yaml#/parameters/match"
23
      - $ref: "../swagger.yaml#/parameters/match"
21
      - $ref: "../swagger.yaml#/parameters/order_by"
24
      - $ref: "../swagger.yaml#/parameters/order_by"
22
      - $ref: "../swagger.yaml#/parameters/page"
25
      - $ref: "../swagger.yaml#/parameters/page"
23
- 

Return to bug 37262