instedd / mbuilder

Scalable SMS application builder
http://mbuilder.instedd.org/
6 stars 1 forks source link

Resourcemap data cannot be retrieved using Loops #281

Closed mmuller closed 9 years ago

mmuller commented 9 years ago

Found in version 1.2-pre2

Resmap Version 2.14-pre7

Preconditions: The account 'Foo' has the collection 'Bar' in Resourcemap

Steps: Sign into mBuilder with the account 'Foo' Go to create a Message Trigger Fill the field 'When a message like this is received:' with 'foreach' Add the collection 'Bar' from Resourcemap Add a foreach Loop Add a new step 'Send SMS' where the Facility 'Name' is sent
Send 'foreach' using the Sandbox

Obtained: The following error is thrown: 'Error: undefined method `[]' for #ResourceMap::Site:0xa5bb120'

Expected: Each Facility 'Name' should be returned

screen shot 2015-03-02 at 3 44 31 pm

screen shot 2015-03-02 at 3 45 29 pm