Skip Menu |
 

This queue is for tickets about the RT-Extension-RepeatTicket CPAN distribution.

Report information
The Basics
Id: 99410
Status: new
Priority: 0/
Queue: RT-Extension-RepeatTicket

People
Owner: Nobody in particular
Requestors: dopheide [...] fmf.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-2.601 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001] autolearn=ham
Content-Disposition: inline
X-Spam-Flag: NO
Content-Type: multipart/signed; boundary="xYEba/cIt2nZJmCG"; micalg="pgp-sha1"; protocol="application/pgp-signature"
Message-ID: <20141010074224.GW30893 [...] fmf.nl>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.601
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 61B93240637 for <cpan-bug+RT-Extension-RepeatTicket [...] hipster.bestpractical.com>; Fri, 10 Oct 2014 03:42:35 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id we9A8X3rOrn1 for <cpan-bug+RT-Extension-RepeatTicket [...] hipster.bestpractical.com>; Fri, 10 Oct 2014 03:42:34 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id BE65024062E for <bug-RT-Extension-RepeatTicket [...] rt.cpan.org>; Fri, 10 Oct 2014 03:42:33 -0400 (EDT)
Received: (qmail 25542 invoked by alias); 10 Oct 2014 07:42:32 -0000
Received: from fwn-nb4-edu-61-85.fmnsedu.rug.nl (HELO fmf.nl) (129.125.61.85) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 10 Oct 2014 00:42:30 -0700
Received: by fmf.nl (Postfix, from userid 1141) id 1100B1EE003; Fri, 10 Oct 2014 09:42:24 +0200 (CEST)
Delivered-To: cpan-bug+RT-Extension-RepeatTicket [...] hipster.bestpractical.com
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: $RepeatTicketLeadTime can not be 0
Return-Path: <dopheide [...] fmf.nl>
X-RT-Mail-Extension: rt-extension-repeatticket
X-Original-To: cpan-bug+RT-Extension-RepeatTicket [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 10 Oct 2014 09:42:24 +0200
X-Spam-Level:
To: bug-RT-Extension-RepeatTicket [...] rt.cpan.org
From: Bart Dopheide <dopheide [...] fmf.nl>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ascii
Content-Length: 2225
Download (untitled) / with headers
text/plain 2.1k
Hi, In version 0.07 of RT::Extension::RepeatTicket, $RepeatTicketLeadTime defaults to 14. When overruling this default via etc/RT_SiteConfig.pm and using a value of 1, everything still works. But if we do not want a lead time, i.e. a value of 0, the default becomes 14. The use case for a zero lead time is that we want to have daily operationals and we want them to pop up, at, say 07:00 (AM). By setting $RepeatTicketLeadTime to 0, we want to prevent clobbering up the back officers' overview of outstanding tickets. The following patch seems to work for us: [root@rt ~]# diff -u /opt/rt4/local/plugins/RT-Extension-RepeatTicket/html/Ticket/Elements/EditRecurrence{-dd20141010BD,} --- /opt/rt4/local/plugins/RT-Extension-RepeatTicket/html/Ticket/Elements/EditRecurrence-dd20141010BD 2014-02-13 23:10:12.000000000 +0100 +++ /opt/rt4/local/plugins/RT-Extension-RepeatTicket/html/Ticket/Elements/EditRecurrence 2014-10-10 09:02:06.701526871 +0200 @@ -231,7 +231,8 @@ $ARGSRef->{'repeat-details-monthly'} ||= 'day'; $ARGSRef->{'repeat-details-yearly'} ||= 'day'; $ARGSRef->{'repeat-end'} ||= 'none'; -$ARGSRef->{'repeat-lead-time'} ||= RT->Config->Get('RepeatTicketLeadTime') || 14; +$ARGSRef->{'repeat-lead-time'} = RT->Config->Get('RepeatTicketLeadTime') unless (defined ($ARGSRef->{'repeat-lead-time'})); +$ARGSRef->{'repeat-lead-time'} = 14 unless (defined ($ARGSRef->{'repeat-lead-time'})); $ARGSRef->{'repeat-coexistent-number'} ||= RT->Config->Get('RepeatTicketCoexistentNumber') || 1; my $input = sub { [root@rt ~]# FWIW: [root@rt ~]# perl -v This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. [root@rt ~]# uname -a Linux rt.plusine.intern 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux [root@rt ~]# Best regards, Bart Dopheide
Content-Description: Digital signature
Content-Type: application/pgp-signature; name="signature.asc"
Content-Length: 836
Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.