Re: [rt-users] problem with PriorityAsString extension
On the following page you can click edit: https://github.com/bestpractical/rt-extension-priorityasstring/blob/master/lib/RT/Extension/PriorityAsString.pm this allows you to provide documentation patch without clonning, knowing git, right from you browser. On Tue, Sep 10, 2013 at 10:42 AM, Rob Chanter wrote: > Ah, just that question has pointed me in the right direction. > > For the benefit of the list archives, the problem was with the contents > of Set(@PriorityAsStringOrder, ...) in the config. > > The example config had one-word labels, something like > Set(@PriorityAsStringOrder, qw(low medium high)). My labels are multiple > words, so I knew that qw() was the wrong list construction. I changed that > to something like > > Set(@PriorityAsStringOrder, ['3 days to go', '2 days to go', '1 day to > go', 'last day', 'overdue']); > > Obviously my perl is too rusty for my own good. Changing the square > brackets to parentheses changed the second argument from an array to a > list, as it should have been. This is correct: > > Set(@PriorityAsStringOrder, ('3 days to go', '2 days to go', '1 day to > go', 'last day', 'overdue')); > > It all works as I expect now. Perhaps the documentation could include more > examples? > > cheers > rob > > On Tue, Sep 10, 2013 at 3:56 PM, Ruslan Zakirov wrote: > >> Hi, >> >> Show your config options for the extension and version. >> >> >> On Tue, Sep 10, 2013 at 9:42 AM, Rob Chanter wrote: >> >>> Hi list, >>> >>> I've installed the RT::Extension::PriorityAsString extension into RT4.04 >>> on Ubuntu 12.04 LTS. It does, as advertised, display priorities as strings, >>> but also seems to make an unwanted change to the Edit Queue page. >>> >>> Before installing the extension, I get a normal input field into which I >>> can type a number for starting and final priority: >>> >>> Priority starts at:>> name="InitialPriority" value="17" size="5" />Over >>> time, priority moves toward:>> size="5" />requires running >>> rt-crontool >>> >>> After installing/configuring the extension, this is replaced by an option >>> list containing one entry, which looks like an arrayref.: >>> >>> >>> Priority starts at:>> class="select-priority" name="InitialPriority">>> class="array(0x27250880)" value="" >>> >ARRAY(0x27250880)Over >>> time, priority moves toward:>> name="FinalPriority">>> >ARRAY(0x27250880)requires >>> running rt-crontool >>> >>> I would guess the extension has a misplaced '@' where there should be a >>> '$'. Perl version is 5.14.2. >>> >>> This prevents me setting the priorities in new or existing queues. Any >>> ideas on how to resolve it? >>> >>> TIA, >>> >>> >>> rob >>> >>> >> >> >> -- >> Best regards, Ruslan. >> > > -- Best regards, Ruslan.
Re: [rt-users] problem with PriorityAsString extension
Ah, just that question has pointed me in the right direction. For the benefit of the list archives, the problem was with the contents of Set(@PriorityAsStringOrder, ...) in the config. The example config had one-word labels, something like Set(@PriorityAsStringOrder, qw(low medium high)). My labels are multiple words, so I knew that qw() was the wrong list construction. I changed that to something like Set(@PriorityAsStringOrder, ['3 days to go', '2 days to go', '1 day to go', 'last day', 'overdue']); Obviously my perl is too rusty for my own good. Changing the square brackets to parentheses changed the second argument from an array to a list, as it should have been. This is correct: Set(@PriorityAsStringOrder, ('3 days to go', '2 days to go', '1 day to go', 'last day', 'overdue')); It all works as I expect now. Perhaps the documentation could include more examples? cheers rob On Tue, Sep 10, 2013 at 3:56 PM, Ruslan Zakirov wrote: > Hi, > > Show your config options for the extension and version. > > > On Tue, Sep 10, 2013 at 9:42 AM, Rob Chanter wrote: > >> Hi list, >> >> I've installed the RT::Extension::PriorityAsString extension into RT4.04 >> on Ubuntu 12.04 LTS. It does, as advertised, display priorities as strings, >> but also seems to make an unwanted change to the Edit Queue page. >> >> Before installing the extension, I get a normal input field into which I >> can type a number for starting and final priority: >> >> Priority starts at:> name="InitialPriority" value="17" size="5" />Over >> time, priority moves toward:> size="5" />requires running rt-crontool >> >> After installing/configuring the extension, this is replaced by an option >> list containing one entry, which looks like an arrayref.: >> >> Priority starts at:> class="select-priority" name="InitialPriority">> class="array(0x27250880)" value="" >> >ARRAY(0x27250880)Over >> time, priority moves toward:> name="FinalPriority">> >ARRAY(0x27250880)requires running >> rt-crontool >> >> I would guess the extension has a misplaced '@' where there should be a '$'. >> Perl version is 5.14.2. >> >> This prevents me setting the priorities in new or existing queues. Any ideas >> on how to resolve it? >> >> TIA, >> >> rob >> >> > > > -- > Best regards, Ruslan. >
Re: [rt-users] problem with PriorityAsString extension
Hi, Show your config options for the extension and version. On Tue, Sep 10, 2013 at 9:42 AM, Rob Chanter wrote: > Hi list, > > I've installed the RT::Extension::PriorityAsString extension into RT4.04 > on Ubuntu 12.04 LTS. It does, as advertised, display priorities as strings, > but also seems to make an unwanted change to the Edit Queue page. > > Before installing the extension, I get a normal input field into which I > can type a number for starting and final priority: > > Priority starts at: name="InitialPriority" value="17" size="5" />Over > time, priority moves toward: size="5" />requires running rt-crontool > > After installing/configuring the extension, this is replaced by an option > list containing one entry, which looks like an arrayref.: > > Priority starts at: class="select-priority" name="InitialPriority"> class="array(0x27250880)" value="" > >ARRAY(0x27250880)Over time, > priority moves toward: name="FinalPriority"> >ARRAY(0x27250880)requires running > rt-crontool > > I would guess the extension has a misplaced '@' where there should be a '$'. > Perl version is 5.14.2. > > This prevents me setting the priorities in new or existing queues. Any ideas > on how to resolve it? > > TIA, > > rob > > -- Best regards, Ruslan.
[rt-users] problem with PriorityAsString extension
Hi list, I've installed the RT::Extension::PriorityAsString extension into RT4.04 on Ubuntu 12.04 LTS. It does, as advertised, display priorities as strings, but also seems to make an unwanted change to the Edit Queue page. Before installing the extension, I get a normal input field into which I can type a number for starting and final priority: Priority starts at:Over time, priority moves toward:requires running rt-crontool After installing/configuring the extension, this is replaced by an option list containing one entry, which looks like an arrayref.: Priority starts at:ARRAY(0x27250880)Over time, priority moves toward:ARRAY(0x27250880)requires running rt-crontool I would guess the extension has a misplaced '@' where there should be a '$'. Perl version is 5.14.2. This prevents me setting the priorities in new or existing queues. Any ideas on how to resolve it? TIA, rob