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

(-)a/C4/Suggestions.pm (+3 lines)
Lines 27-32 use C4::Letters; Link Here
27
use C4::Biblio qw( GetMarcFromKohaField );
27
use C4::Biblio qw( GetMarcFromKohaField );
28
use Koha::DateUtils qw( dt_from_string );
28
use Koha::DateUtils qw( dt_from_string );
29
use Koha::Suggestions;
29
use Koha::Suggestions;
30
use C4::Log qw(logaction);
30
31
31
use base qw(Exporter);
32
use base qw(Exporter);
32
33
Lines 290-295 sub ModSuggestion { Link Here
290
            ) or warn "can't enqueue letter $letter";
291
            ) or warn "can't enqueue letter $letter";
291
        }
292
        }
292
    }
293
    }
294
    logaction('SUGGESTION', 'MODIFY', $suggestion->{suggestionid}, $suggestion_object );
293
    return 1; # No useful if the exception is raised earlier
295
    return 1; # No useful if the exception is raised earlier
294
}
296
}
295
297
Lines 343-348 sub DelSuggestion { Link Here
343
        };
345
        };
344
        $sth = $dbh->prepare($queryDelete);
346
        $sth = $dbh->prepare($queryDelete);
345
        my $suggestiondeleted = $sth->execute($suggestionid);
347
        my $suggestiondeleted = $sth->execute($suggestionid);
348
        logaction('SUGGESTION', 'DELETE', $suggestionid, '' );
346
        return $suggestiondeleted;
349
        return $suggestiondeleted;
347
    }
350
    }
348
}
351
}
(-)a/Koha/Suggestion.pm (-1 / +2 lines)
Lines 27-32 use Koha::DateUtils qw( dt_from_string ); Link Here
27
use Koha::Patrons;
27
use Koha::Patrons;
28
use Koha::AuthorisedValues;
28
use Koha::AuthorisedValues;
29
use Koha::Exceptions::Suggestion;
29
use Koha::Exceptions::Suggestion;
30
use C4::Log qw(logaction);
30
31
31
use base qw(Koha::Object);
32
use base qw(Koha::Object);
32
33
Lines 111-117 sub store { Link Here
111
            ) or warn "can't enqueue letter $letter";
112
            ) or warn "can't enqueue letter $letter";
112
        }
113
        }
113
    }
114
    }
114
115
    logaction('SUGGESTION', 'CREATE', $result->suggestionid, '' );
115
    return $result;
116
    return $result;
116
}
117
}
117
118
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-2 / +4 lines)
Lines 101-106 Link Here
101
[%        CASE 'NOTICES'      %]<span>Notices</span>[% UNLESS Koha.Preference('NoticesLog') %] <i class="fa-solid fa-triangle-exclamation" title="Log not enabled"></i>[% END %]
101
[%        CASE 'NOTICES'      %]<span>Notices</span>[% UNLESS Koha.Preference('NoticesLog') %] <i class="fa-solid fa-triangle-exclamation" title="Log not enabled"></i>[% END %]
102
[%        CASE 'NEWS'      %]<span>News</span>[% UNLESS Koha.Preference('NewsLog') %] <i class="fa-solid fa-triangle-exclamation" title="Log not enabled"></i>[% END %]
102
[%        CASE 'NEWS'      %]<span>News</span>[% UNLESS Koha.Preference('NewsLog') %] <i class="fa-solid fa-triangle-exclamation" title="Log not enabled"></i>[% END %]
103
[%        CASE 'RECALLS'      %]<span>Recalls</span>[% UNLESS Koha.Preference('RecallsLog') %] <i class="fa-solid fa-triangle-exclamation" title="Log not enabled"></i>[% END %]
103
[%        CASE 'RECALLS'      %]<span>Recalls</span>[% UNLESS Koha.Preference('RecallsLog') %] <i class="fa-solid fa-triangle-exclamation" title="Log not enabled"></i>[% END %]
104
[%        CASE 'SUGGESTION'      %]<span>Suggestions</span>
104
105
105
[%        CASE %][% module | html %]
106
[%        CASE %][% module | html %]
106
[%    END %]
107
[%    END %]
Lines 217-223 Link Here
217
                                        [% ELSE %]
218
                                        [% ELSE %]
218
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
219
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value=""> All</label>
219
                                        [% END %]
220
                                        [% END %]
220
                                        [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'CLAIMS' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE', 'NOTICES', 'NEWS', 'RECALLS' ] %]
221
                                        [% FOREACH modx IN [ 'AUTH' 'CATALOGUING' 'AUTHORITIES' 'MEMBERS' 'ACQUISITIONS' 'SERIAL' 'HOLDS' 'ILL' 'CIRCULATION' 'CLAIMS' 'FINES' 'SYSTEMPREFERENCE' 'CRONJOBS', 'REPORTS', 'SEARCHENGINE', 'NOTICES', 'NEWS', 'RECALLS', 'SUGGESTION' ] %]
221
                                            [% IF modules.grep(modx).size %]
222
                                            [% IF modules.grep(modx).size %]
222
                                                <label for="module[% modx | html %]" class="viewlog"><input type="checkbox" id="module[% modx | html %]" name="modules" value="[% modx | html %]" checked="checked"> [% PROCESS translate_log_module module=modx %]</label>
223
                                                <label for="module[% modx | html %]" class="viewlog"><input type="checkbox" id="module[% modx | html %]" name="modules" value="[% modx | html %]" checked="checked"> [% PROCESS translate_log_module module=modx %]</label>
223
                                            [% ELSE %]
224
                                            [% ELSE %]
Lines 383-388 Link Here
383
                                                [% ELSE %]
384
                                                [% ELSE %]
384
                                                    Basket [% loopro.object | html %]
385
                                                    Basket [% loopro.object | html %]
385
                                                [% END %]
386
                                                [% END %]
387
                                            [% ELSIF ( loopro.module == "SUGGESTION" ) %]
388
                                                <a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loopro.object | uri %]&op=show">[% loopro.object | html %]</a>
386
                                            [% ELSE %]
389
                                            [% ELSE %]
387
                                                [% loopro.object | html %]
390
                                                [% loopro.object | html %]
388
                                            [% END %]
391
                                            [% END %]
389
- 

Return to bug 35597