Skip to content

Commit

Permalink
Update CoInvitesController.php
Browse files Browse the repository at this point in the history
Save recalculated ef_attrs
  • Loading branch information
ioigoume authored Dec 9, 2021
1 parent b98c3e9 commit 1fb9b09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Controller/CoInvitesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,8 @@ function reply($inviteid) {

$enrollmentAttributes = $this->CoInvite->CoPetition->filterHistoricalAttributes($enrollmentAttributes, $v_attrs_history);

// XXX We do not need to save the new attribute set since we will recalculate every time for this use case
// $this->CoInvite->CoPetition->id = $invite['CoPetition']['id'];
// $this->CoInvite->CoPetition->saveField('ef_attrs', serialize($enrollmentAttributes));
$this->CoInvite->CoPetition->id = $invite['CoPetition']['id'];
$this->CoInvite->CoPetition->saveField('ef_attrs', serialize($enrollmentAttributes));
} else {
$enrollmentAttributes = unserialize($enrollmentAttributes);
}
Expand Down

0 comments on commit 1fb9b09

Please sign in to comment.