diff --git a/Controller/HumanitiesCommonsIdpEnrollerCoPetitionsController.php b/Controller/HumanitiesCommonsIdpEnrollerCoPetitionsController.php index 4f3e4a8..b8dc142 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'] = false; + $args['contain'] = true; $config = $this->HumanitiesCommonsIdpEnroller->find('first', $args); if (empty($config)) { $this->Flash->set(_txt('er.humanitiescommonsidpenroller.account.noconfig'), array('key' => 'error')); @@ -80,7 +80,7 @@ protected function execute_plugin_checkEligibility($id, $onFinish) { // If the petition already has a username then do not present // a form and just redirect. - if ($coPetition['CoPetition']['co_enrollment_flow_id'] != '604' ) { + if ($coPetition['CoPetition']['co_enrollment_flow_id'] != '654' ) { foreach($coPetition['EnrolleeCoPerson']['Identifier'] as $identifier) { if($identifier['type'] == $config['HumanitiesCommonsIdpEnroller']['username_id_type'] && !empty($identifier['identifier']) ) { @@ -248,7 +248,7 @@ protected function execute_plugin_selectEnrollee($id, $onFinish) { $args = array(); $args['conditions']['HumanitiesCommonsIdpEnroller.co_enrollment_flow_wedge_id'] = $efwid; - $args['contain'] = false; + $args['contain'] = true; $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 cac4833..56934fd 100644 --- a/View/HumanitiesCommonsIdpEnrollerCoPetitions/check_eligibility.ctp +++ b/View/HumanitiesCommonsIdpEnrollerCoPetitions/check_eligibility.ctp @@ -33,7 +33,6 @@ print $this->element("pageTitleAndButtons", $params); print $this->Form->create(false); - print $this->Form->hidden('CoPetition.co_enrollment_flow_wedge_id', array('default' => $vv_efwid)); ?>