diff --git a/Controller/HumanitiesCommonsIdpEnrollerCoPetitionsController.php b/Controller/HumanitiesCommonsIdpEnrollerCoPetitionsController.php index ffce9ef..f8cf44f 100644 --- a/Controller/HumanitiesCommonsIdpEnrollerCoPetitionsController.php +++ b/Controller/HumanitiesCommonsIdpEnrollerCoPetitionsController.php @@ -50,7 +50,7 @@ protected function execute_plugin_checkEligibility($id, $onFinish) { $args = array(); $args['conditions']['HumanitiesCommonsIdpEnroller.co_enrollment_flow_wedge_id'] = $efwid; - $args['contain'] = true; + $args['contain'] = false; $config = $this->HumanitiesCommonsIdpEnroller->find('first', $args); if (empty($config)) { $this->Flash->set(_txt('er.humanitiescommonsidpenroller.account.noconfig'), array('key' => 'error')); @@ -223,6 +223,7 @@ protected function execute_plugin_checkEligibility($id, $onFinish) { // GET, fall through to display view ( $debug ? $this->log($logPrefix . "received GET so displaying form to collect username") : null); + $this->set('vv_efwid', $efwid); } /** @@ -242,7 +243,7 @@ protected function execute_plugin_selectEnrollee($id, $onFinish) { $args = array(); $args['conditions']['HumanitiesCommonsIdpEnroller.co_enrollment_flow_wedge_id'] = $efwid; - $args['contain'] = true; + $args['contain'] = false; $config = $this->HumanitiesCommonsIdpEnroller->find('first', $args); if (empty($config)) { $this->Flash->set(_txt('er.humanitiescommonsidpenroller.account.noconfig'), array('key' => 'error')); diff --git a/View/HumanitiesCommonsIdpEnrollerCoPetitions/check_eligibility.ctp b/View/HumanitiesCommonsIdpEnrollerCoPetitions/check_eligibility.ctp index c024cca..c9e1527 100644 --- a/View/HumanitiesCommonsIdpEnrollerCoPetitions/check_eligibility.ctp +++ b/View/HumanitiesCommonsIdpEnrollerCoPetitions/check_eligibility.ctp @@ -33,6 +33,7 @@ print $this->element("pageTitleAndButtons", $params); print $this->Form->create(false); + print $this->Form->hidden('CoPetition.co_enrollment_flow_wedge_id', array('default' => $vv_efwid)); ?>