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

(-)a/Koha/Display.pm (+29 lines)
Lines 185-190 sub delete { Link Here
185
    return $result;
185
    return $result;
186
}
186
}
187
187
188
=head2 Public API methods
189
190
=head3 public_read_list
191
192
Returns the list of fields that are allowed to be read by the public API.
193
Excludes staff_note which is for internal use only.
194
195
=cut
196
197
sub public_read_list {
198
    return [
199
        qw(
200
            display_id
201
            display_name
202
            start_date
203
            end_date
204
            enabled
205
            display_location
206
            display_code
207
            display_branch
208
            display_holding_branch
209
            display_itype
210
            public_note
211
            display_days
212
            display_return_over
213
        )
214
    ];
215
}
216
188
=head2 Internal methods
217
=head2 Internal methods
189
218
190
=head3 _type
219
=head3 _type
(-)a/Koha/REST/V1/Displays.pm (-1 / +1 lines)
Lines 21-26 use Modern::Perl; Link Here
21
21
22
use Mojo::Base 'Mojolicious::Controller';
22
use Mojo::Base 'Mojolicious::Controller';
23
23
24
use C4::Context;
24
use Koha::Display;
25
use Koha::Display;
25
use Koha::Displays;
26
use Koha::Displays;
26
use Koha::DateUtils qw( dt_from_string );
27
use Koha::DateUtils qw( dt_from_string );
27
- 

Return to bug 14962