[rt-users] Fwd: Using getting stuck when choosing new Custom Lifecycle

Matt Zagrabelny mzagrabe at d.umn.edu
Tue Feb 14 09:34:33 EST 2017

On Tue, Feb 14, 2017 at 8:14 AM, Dippery, Kyle <kyle.dippery at uky.edu> wrote:
> In my own custom lifecycle, I have one hyphenated status ("in-use").  I don't remember why (perhaps this is the reason), but I have it in quotation marks as a key in our transitions array:
>  transitions => {
>            ...
>            "in-use"  => [qw(allocated recycled stolen lost deleted surplussed destroyed-for-parts scattered-across-the-desert)],
>             }
> Your hyphenated ones aren't quoted in your array.  Perhaps that's the sticking point?  Perl might be trying to do math with the "-" before assigning to it.

Guaranteed. You need to quote hash keys that contain hyphens.


More information about the rt-users mailing list