[Rt-devel] RE: [PATCH]: Data normalisation for multi-valued CFs in GUI create

Philip Kime pkime at Shopzilla.com
Thu Feb 22 21:53:01 EST 2007


> Changing how R:I:W:CreateTicket calls Ticket->Create doesn't seem to
me to win you 
> anything and if you're writing code in Ticket->Create() that expects
only one or the 
> other, then you're doing it in the wrong place. 

Well, you're right - I am actually adding code to Ticket->Create() to
reject ticket creation if their mandatory fields aren't set. As part of
this processing, I'd like to use ->SingleValue to tell if I should be
looking at empty strings or empty arrays. It's more OO and nice that
way. If I have to do "ref $blah eq 'ARRAY', it's fine but not as neat.
I'm really only thinking of regularising it - the GUI behaves
differently to REST and CommandByMail which put even single values in
arrays so you always know what you're getting.

PK


More information about the Rt-devel mailing list