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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/circulation_triggers.tt (+2 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE To %]
2
[% USE To %]
3
[% USE Asset %]
3
[% USE Asset %]
4
[% USE Branches %]
4
[% USE KohaDates %]
5
[% USE KohaDates %]
5
[% USE TablesSettings %]
6
[% USE TablesSettings %]
6
[% USE AuthorisedValues %]
7
[% USE AuthorisedValues %]
Lines 33-38 Link Here
33
        [% INCLUDE 'js-date-format.inc' %]
34
        [% INCLUDE 'js-date-format.inc' %]
34
        <script>
35
        <script>
35
            const letters = [% To.json(letters) | $raw %];
36
            const letters = [% To.json(letters) | $raw %];
37
            const default_view = "[%- IF Koha.Preference('DefaultToLoggedInLibraryOverdueTriggers') -%][% Branches.GetLoggedInBranchcode %][%- ELSE -%]*[%- END -%]";
36
        </script>
38
        </script>
37
        [% Asset.js("js/vue/dist/admin/circulation_triggers.js") | $raw %]
39
        [% Asset.js("js/vue/dist/admin/circulation_triggers.js") | $raw %]
38
    [% END %]
40
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue (-6 / +2 lines)
Lines 138-144 export default { Link Here
138
        return {
138
        return {
139
            initialized: false,
139
            initialized: false,
140
            libraries: null,
140
            libraries: null,
141
            selectedLibrary: "*",
141
            selectedLibrary: default_view,
142
            circRules: null,
142
            circRules: null,
143
            numberOfTabs: [1],
143
            numberOfTabs: [1],
144
            tabSelected: "Notice 1",
144
            tabSelected: "Notice 1",
Lines 201-211 export default { Link Here
201
                error => {}
201
                error => {}
202
            );
202
            );
203
        },
203
        },
204
        async getCircRules(params = {}, pageLoad) {
204
        async getCircRules(params = {}) {
205
            params.effective = false;
205
            params.effective = false;
206
            if (pageLoad) {
207
                params.library_id = "*";
208
            }
209
            const client = APIClient.circRule;
206
            const client = APIClient.circRule;
210
            await client.circRules.getAll({}, params).then(
207
            await client.circRules.getAll({}, params).then(
211
                rules => {
208
                rules => {
212
- 

Return to bug 10190