Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 7, 2022
2 parents 017725c + b8e4fb0 commit f5bd7cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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']) ) {
Expand Down Expand Up @@ -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'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
?>

<script type="text/javascript">
Expand Down

0 comments on commit f5bd7cc

Please sign in to comment.