Is there a reason why @workitem.fields_hash['params'] could ever be nil
in ruote-web? I assume not, but if so, then WorkitemHelper::
find_partial needs a minor patch.

 

Why do I ask?

 

While experimenting with some custom forms I forgot to add hidden fields
to preserve the workflow parameters. This basically resulted in the
field 'params' to be removed (as many other fields), which is a problem
in WorkitemHelper:: find_partial which uses

 

    128:   activity = wi_fields['params']['activity'] 

 

Of course, one can easily add "if wi_fields['params']" or whatever, but
on the other hand: the unexpected nil saved me from a lot of trouble at
a later moment... :-)

 

http://github.com/jmettraux/ruote-web/tree/1c6b31fdb1ff24d181ab3724401ff
79fe2e6ec19/app/helpers/workitem_helper.rb#L128

 

Cheers,

Arjan.

-- John, thanks for adding ${fv:..} and ${vf:..} !

 


--~--~---------~--~----~------------~-------~--~----~
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