LMS Development Company – Expert Moodle Developers Forums MooWoodle Pro gifter@example.com displays even on production e-mail

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24309
    Laurent Chevassu
    Participant

    The section “This enrollment was gifted by” always displays in the enrollment e-mail.

    The following lines are faulty in moowoodle-pro/templates/EnrollmentEmail.php version 3.3.0

    They set a default even outside of preview mode.

    // Normalize gift/teacher emails.
    $gift_email = $args[‘enrollments’][‘gift_email’] ?? ‘gifter@example.com’;
    $teacher_email = $args[‘enrollments’][‘teacher_email’] ?? ‘teacher@example.com’;

    They need to be changed to something like:
    // Normalize gift/teacher emails.
    $gift_email = $args[‘enrollments’][‘gift_email’] ?? ($is_preview ? ‘gifter@example.com’ : ”);
    $teacher_email = $args[‘enrollments’][‘teacher_email’] ?? ($is_preview ?’teacher@example.com’ : ”);

    #24322
    dualcube
    Keymaster

    Hello @Laurent Chevassu, thanks for reporting this issue.

    Our team is looking into this, kindly provide us sometime.

    Regards,
    Moumita

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.