On Nov 12, 2007 9:35 PM, Maarten <[EMAIL PROTECTED]> wrote:
>
> Hi John,
>
> I think that the WorkItem#has_attribute? function does not work
> properly for arrays and hashes. I discovered this when I tried to use
> something like <defined field="my_array.0"> to test for the first
> entry of an array attribute. I then added the following lines to my
> program:
>
> puts workitem.lookup_attribute('my_array.0').to_s
> puts workitem.has_attribute?('my_array.0').to_s
>
> The first line returns the object, but the second line returns false.
> I would expect the second line to return true when the object is
> present.

Nice catch,

http://rubyforge.org/tracker/index.php?func=detail&aid=15575&group_id=2609&atid=10023

I'll fix that asap (after the footing).


Thanks a lot, best regards,


-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to