Skip to content

Commit

Permalink
Fix handling of AR-EmailAddress-2 (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jul 14, 2024
1 parent f0d4957 commit 0754723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if($vv_action == 'add' || $vv_action == 'edit') {

print '<li class="info-title"><h3>' . __d('api_connector', 'field.ApiSources.push_mode') . '</h3></li>';

print $this->element('banner', [
print $this->element('notify/banner', [
'info' => __d('api_connector', 'information.endpoint.push', [$vv_push_endpoint])
]);

Expand Down
2 changes: 1 addition & 1 deletion app/src/Model/Table/EmailAddressesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function afterMarshal(
\ArrayObject $data,
\ArrayObject $options
) {
if(!empty($entity->person_id) && $entity->isDirty('mail')) {
if(!$entity->isNew() && !empty($entity->person_id) && $entity->isDirty('mail')) {
// AR-EmailAddress-2 Editing an Email Address (but not its Type) associated
// with a Person will revert it to unverified.

Expand Down

0 comments on commit 0754723

Please sign in to comment.