dimagi/commcare-hq — pull request #3762 by snopoke (2014-07-01 14:34:40+00:00)
Title: add commcaresession to all entries if form filtering in module

When a menu command has a 'relevance' xpath criteria that xpath is evaluated using instances from the first entry ([source](https://bitbucket.org/commcare/commcare/src/8a35c95b69c653d94fba7de762fb3cc7d187ec58/backend/src/org/commcare/util/CommCareSession.java?at=default#cl-394)).

This change adds any instances referenced in ANY of the menu commands to ALL of the entries for that menu.

Not sure if we want to make a smarter version that only adds extra instances to the first entry?

@dannyroberts