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

(-)a/C4/Creators/Batch.pm (-1 / +1 lines)
Lines 180-186 sub delete { Link Here
180
        @query_params = ($opts{'batch_id'}, $opts{'branch_code'});
180
        @query_params = ($opts{'batch_id'}, $opts{'branch_code'});
181
    }
181
    }
182
    if ($query_params[0] eq '') {   # If there is no template id then we cannot delete it
182
    if ($query_params[0] eq '') {   # If there is no template id then we cannot delete it
183
        warn sprintf('%s : Cannot delete batch as the batch id is invalid or non-existent.', $call_type);
183
        warn sprintf('%s : Cannot delete batch as the batch ID is invalid or non-existent.', $call_type);
184
        return -1;
184
        return -1;
185
    }
185
    }
186
    my $query = "DELETE FROM creator_batches WHERE batch_id = ? AND branch_code =?";
186
    my $query = "DELETE FROM creator_batches WHERE batch_id = ? AND branch_code =?";
(-)a/C4/Creators/Layout.pm (-1 / +1 lines)
Lines 126-132 sub delete { Link Here
126
        push @params, $opts{'layout_id'}, $opts{'creator'};
126
        push @params, $opts{'layout_id'}, $opts{'creator'};
127
    }
127
    }
128
    if (scalar(@params) < 2) {   # If there is no layout id or creator type then we cannot delete it
128
    if (scalar(@params) < 2) {   # If there is no layout id or creator type then we cannot delete it
129
        warn sprintf('%s : Cannot delete layout as the profile id is invalid or non-existent.', $call_type) if !$params[0];
129
        warn sprintf('%s : Cannot delete layout as the profile ID is invalid or non-existent.', $call_type) if !$params[0];
130
        warn sprintf('%s : Cannot delete layout as the creator type is invalid or non-existent.', $call_type) if !$params[1];
130
        warn sprintf('%s : Cannot delete layout as the creator type is invalid or non-existent.', $call_type) if !$params[1];
131
        return -1;
131
        return -1;
132
    }
132
    }
(-)a/C4/Creators/Profile.pm (-1 / +1 lines)
Lines 106-112 sub delete { Link Here
106
        push @params, $opts{'profile_id'}, $opts{'creator'};
106
        push @params, $opts{'profile_id'}, $opts{'creator'};
107
    }
107
    }
108
    if (scalar(@params) < 2) {   # If there is no profile id or creator type then we cannot delete it
108
    if (scalar(@params) < 2) {   # If there is no profile id or creator type then we cannot delete it
109
        warn sprintf('%s : Cannot delete profile as the profile id is invalid or non-existent.', $call_type) if !$params[0];
109
        warn sprintf('%s : Cannot delete profile as the profile ID is invalid or non-existent.', $call_type) if !$params[0];
110
        warn sprintf('%s : Cannot delete profile as the creator type is invalid or non-existent.', $call_type) if !$params[1];
110
        warn sprintf('%s : Cannot delete profile as the creator type is invalid or non-existent.', $call_type) if !$params[1];
111
        return -1;
111
        return -1;
112
    }
112
    }
(-)a/C4/Creators/Template.pm (-1 / +1 lines)
Lines 146-152 sub delete { Link Here
146
        push @query_params, $opts{'template_id'}, $opts{'creator'};
146
        push @query_params, $opts{'template_id'}, $opts{'creator'};
147
    }
147
    }
148
    if (scalar(@query_params) < 2) {   # If there is no template id or creator type then we cannot delete it
148
    if (scalar(@query_params) < 2) {   # If there is no template id or creator type then we cannot delete it
149
        warn sprintf('%s : Cannot delete template as the template id is invalid or non-existent.', $call_type) if !$query_params[0];
149
        warn sprintf('%s : Cannot delete template as the template ID is invalid or non-existent.', $call_type) if !$query_params[0];
150
        warn sprintf('%s : Cannot delete template as the creator type is invalid or non-existent.', $call_type) if !$query_params[1];
150
        warn sprintf('%s : Cannot delete template as the creator type is invalid or non-existent.', $call_type) if !$query_params[1];
151
        return -1;
151
        return -1;
152
    }
152
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt (-1 / +1 lines)
Lines 70-76 Link Here
70
    <div class="dialog [% m.type | html %]" id="identity_provider_domain_action_result_dialog">
70
    <div class="dialog [% m.type | html %]" id="identity_provider_domain_action_result_dialog">
71
        [% SWITCH m.code %]
71
        [% SWITCH m.code %]
72
        [% CASE 'error_on_update' %]
72
        [% CASE 'error_on_update' %]
73
            <span>An error occurred trying to open the identity provider domain for editing. The passed id is invalid.</span>
73
            <span>An error occurred trying to open the identity provider domain for editing. The passed ID is invalid.</span>
74
        [% CASE 'error_on_insert' %]
74
        [% CASE 'error_on_insert' %]
75
            <span>An error occurred when adding a new identity provider domain.</span>
75
            <span>An error occurred when adding a new identity provider domain.</span>
76
        [% CASE 'success_on_update' %]
76
        [% CASE 'success_on_update' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt (-1 / +1 lines)
Lines 66-72 Link Here
66
    <div class="dialog [% m.type | html %]" id="identity_provider_action_result_dialog">
66
    <div class="dialog [% m.type | html %]" id="identity_provider_action_result_dialog">
67
        [% SWITCH m.code %]
67
        [% SWITCH m.code %]
68
        [% CASE 'error_on_update' %]
68
        [% CASE 'error_on_update' %]
69
            <span>An error occurred trying to open the identity provider for editing. The passed id is invalid.</span>
69
            <span>An error occurred trying to open the identity provider for editing. The passed ID is invalid.</span>
70
        [% CASE 'error_on_insert' %]
70
        [% CASE 'error_on_insert' %]
71
            <span>An error occurred when adding a new identity provider.</span>
71
            <span>An error occurred when adding a new identity provider.</span>
72
        [% CASE 'success_on_update' %]
72
        [% CASE 'success_on_update' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt (-1 / +1 lines)
Lines 166-172 Link Here
166
166
167
    <h1>Patron restrictions</h1>
167
    <h1>Patron restrictions</h1>
168
    [% IF searchfield %]
168
    [% IF searchfield %]
169
        You Searched for [% searchfield | html %]</span>
169
        You searched for [% searchfield | html %]</span>
170
    [% END %]
170
    [% END %]
171
    [% IF restrictions %]
171
    [% IF restrictions %]
172
        <div class="page-section">
172
        <div class="page-section">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-2 / +1 lines)
Lines 64-70 Link Here
64
    <div class="dialog [% m.type | html %]" id="smtp_action_result_dialog">
64
    <div class="dialog [% m.type | html %]" id="smtp_action_result_dialog">
65
        [% SWITCH m.code %]
65
        [% SWITCH m.code %]
66
        [% CASE 'error_on_update' %]
66
        [% CASE 'error_on_update' %]
67
            <span>An error occurred trying to open the server for editing. The passed id is invalid.</span>
67
            <span>An error occurred trying to open the server for editing. The passed ID is invalid.</span>
68
        [% CASE 'error_on_insert' %]
68
        [% CASE 'error_on_insert' %]
69
            <span>An error occurred when adding the server. The library already has an SMTP server set.</span>
69
            <span>An error occurred when adding the server. The library already has an SMTP server set.</span>
70
        [% CASE 'success_on_update' %]
70
        [% CASE 'success_on_update' %]
71
- 

Return to bug 32222