blib/lib/RT/Extension/OneClickClose.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3 package RT::Extension::OneClickClose;
4  
5 our $VERSION = '0.02';
6  
7 =head1 NAME
8  
9 RT-Extension-OneClickClose - sets status of a given Ticket to resolved and returns to the previous Search/Results page
10  
11 =head1 DESCRIPTION
12  
13 Sometimes it is cumbersome to go through several pages and to close a ticket, OnClickClose resolves a ticket and returns
14 to the previous Search Page. Just add AfterSubmit=1 to the "Close" Link
15  
16 =head1 RT VERSION
17  
18 Works with RT 4.2
19  
20  
21 =head1 INSTALLATION
22  
23 =over
24  
25 =item C<perl Makefile.PL>
26  
27 =item C<make>
28  
29 =item C<make install>
30  
31 May need root permissions
32  
33 =item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
34  
35 If you are using RT 4.2 or greater, add this line:
36  
37 Plugin('RT::Extension::OneClickClose');
38  
39 For RT 4.0, add this line:
40  
41 Set(@Plugins, qw(RT::Extension::OneClickClose));
42  
43 or add C<RT::Extension::OneClickClose> to your existing C<@Plugins> line.
44  
45 to use it use an URL like this
46  
47 '<B><A HREF="__WebPath__/Ticket/Update.html?Status=resolved&SubmitTicket=1&id=__id__&AfterSubmitReturn=1">OneClickClose</a></B>/TITLE:OneClickClose'
48  
49 =item Clear your mason cache
50  
51 rm -rf /opt/rt4/var/mason_data/obj
52  
53 =item Restart your webserver
54  
55 =back
56  
57 =head1 AUTHOR
58  
59 Mark Hofstertter University of Vienna E<lt>mark.hofstetter@univie.ac.atE<gt>
60  
61 =head1 BUGS
62  
63 All bugs should be reported via web to
64  
65 L<https://github.com/MarkHofstetter/RT-Extension-OneClickClose/issues>.
66  
67 =head1 LICENSE AND COPYRIGHT
68  
69 This software is Copyright (c) 2015 by Mark Hofstetter
70  
71 This is free software, licensed under:
72  
73 The GNU General Public License, Version 2, June 1991
74  
75 =cut
76  
77 1;