ASTPP notification email issue fix

By Ignat Kononov on 2021-05-31
Updated by Yevgeniya Suminova on 2021-06-03

 

 

Contents

Introduction. 1

Fixing. 1

Verification. 1

End of document 1

 

Introduction

 

The issue is described in this document: https://docs.switzernet.com/3/public/210402-notification-emails-on-ASTPP/

Fixing

 

In /opt/ASTPP/web_interface/astpp/application/libraries/astpp/common.php str 1311-1312

Before:

$accountinfo['email']=(isset($accountinfo['notification_email']) && $accountinfo['notification_email'] != '')?$accountinfo['notification_email'] : $accountinfo['email'];

Text

Description automatically generated

After:

if (isset($accountinfo['notification_email']) && !empty($accountinfo['notification_email'])){

                        $accountinfo['email'] = $accountinfo['notification_email'];

                }

                $useremail = $accountinfo['email'];

Text

Description automatically generated

Verification

 

Empty field 'notification_email':

Sent message:

Non-empty field ‘notification_email’:

Sent message:

End of document

***

© 4z.com