Re: Fwd: Using getting stuck when choosing new Custom Lifecycle

Ben Pintilie <[email protected]> Tue, 14 Feb 2017 15:51:47 +0000
Newsgroups gmane.comp.bug-tracking.request-tracker.user
Message-ID <CAGgD_U_-=UfCJOeFyHwydyr3bJEWthOHfV6rQt7eSzZ+efy+rg@mail.gmail.com>
--001a11428b3a719cc005487f8c75
Content-Type: text/plain; charset=UTF-8

Matt / Kyle,

Thanks for your fast replies.  This has fixed the issue and all is working
well.

I have just checked my notes going back about 10 years and this is the
first time I must have ever used a hyphen in a status!  I knew it was
something I did, I would never have found it.  Thanks for your help! :-)


Thanks
Ben

--
Ben Pintilie
Blackpool Sixth Form College
w: http://www.blackpoolsixth.ac.uk
e: [email protected]

On 14 February 2017 at 14:34, Matt Zagrabelny <[email protected]> wrote:

> On Tue, Feb 14, 2017 at 8:14 AM, Dippery, Kyle <[email protected]>
> 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.
>
> -m
>

-- 


*T:* 01253 394911

*W:* blackpoolsixth.ac.uk

Blackpool Sixth, Blackpool Old Road, Blackpool, FY3 7LR

This email and any attachments are confidential and are intended solely for 
the use of the individual to whom it is addressed. If you are not the 
intended recipient of this email and its attachments, you must take no 
action based upon them, nor must you copy or show them to anyone. Please 
contact the sender if you believe you have received this email in error.  
Emails are not secure and cannot be guaranteed to be free of errors or 
viruses.  It is your responsibility to scan emails and attachments for 
viruses before opening them.


Any views or opinions expressed are solely those of the author and do not 
necessarily represent those of The Blackpool Sixth Form College.

--001a11428b3a719cc005487f8c75
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Matt / Kyle,<div><br>Thanks for your fast replies.=C2=A0 T=
his has fixed the issue and all is working well. =C2=A0</div><div><br></div=
><div>I have just checked my notes going back about 10 years and this is th=
e first time I must have ever used a hyphen in a status!=C2=A0 I knew it wa=
s something I did, I would never have found it.=C2=A0 Thanks for your help!=
 :-)</div></div><div class=3D"gmail_extra"><br clear=3D"all"><div><div clas=
s=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><=
br><div><div style=3D"font-size:small">Thanks</div><div style=3D"font-size:=
small">Ben</div><div style=3D"font-size:small"><br></div><div style=3D"font=
-size:small">--<br>Ben Pintilie</div><div style=3D"font-size:small">Blackpo=
ol Sixth Form College</div><div style=3D"font-size:small">w: <a href=3D"htt=
p://www.blackpoolsixth.ac.uk" target=3D"_blank">http://www.blackpoolsixth.a=
c.uk</a></div><div style=3D"font-size:small">e: <a href=3D"mailto:ben.pinti=
[email protected]" target=3D"_blank">[email protected].=
uk</a></div></div></div></div></div>
<br><div class=3D"gmail_quote">On 14 February 2017 at 14:34, Matt Zagrabeln=
y <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_bl=
ank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex"><span class=3D"">On Tue, Feb 14, 2017 at 8:14 AM, Dippery, Kyle &lt;<a=
 href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<b=
r>
&gt; In my own custom lifecycle, I have one hyphenated status (&quot;in-use=
&quot;).=C2=A0 I don&#39;t remember why (perhaps this is the reason), but I=
 have it in quotation marks as a key in our transitions array:<br>
&gt;<br>
&gt;=C2=A0 transitions =3D&gt; {<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;in-use&quot;=C2=A0 =3D&=
gt; [qw(allocated recycled stolen lost deleted surplussed destroyed-for-par=
ts scattered-across-the-desert)],<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}<br>
&gt;<br>
&gt; Your hyphenated ones aren&#39;t quoted in your array.=C2=A0 Perhaps th=
at&#39;s the sticking point?=C2=A0 Perl might be trying to do math with the=
 &quot;-&quot; before assigning to it.<br>
<br>
</span>Guaranteed. You need to quote hash keys that contain hyphens.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-m<br>
</font></span></blockquote></div><br></div>

<br>
<p><span><b>T:</b>=C2=A001253 394911</span></p><p><span><b>W:</b>=C2=A0<a h=
ref=3D"http://blackpoolsixth.ac.uk/" target=3D"_blank"><span>blackpoolsixth=
.ac.uk</span></a></span></p><p><span></span></p><p><span>Blackpool Sixth, B=
lackpool Old Road, Blackpool, FY3 7LR</span></p><p><span>This email and any=
 attachments are confidential and are intended solely for the use of the in=
dividual to whom it is addressed. If you are not the intended recipient of =
this email and its attachments, you must take no action based upon them, no=
r must you copy or show them to anyone. Please contact the sender if you be=
lieve you have received this email in error.=C2=A0 Emails are not secure an=
d cannot be guaranteed to be free of errors or viruses.=C2=A0 It is your re=
sponsibility to scan emails and attachments for viruses before opening them=
.</span></p><p><span></span><br></p><p>









</p><p><span>Any views or opinions expressed are solely those of the author=
 and do not necessarily represent those of The Blackpool Sixth Form College=
.</span></p>
--001a11428b3a719cc005487f8c75--