Skip to content

Default message for 'New offline donation' #6063

Open
@Genevieve-K

Description

@Genevieve-K

User Story

As a developper, I want to filter the default messages so so that they are more suitable for donation sites in different countries. I cannot change the default message for 'New offline donation'.

Details

The default message alerting the administrator of a 'New offline donation' is the default 'Donation notification' message.

Moreover, as explained in #6065, the get_default_email_message() function uses {$this->config['id']} which is not yet defined when calling the load() function.

Expected Behavior

In class class-new-offline-donation-email.php:
Line 53:
'default_email_message' => ( false !== give_get_option( 'new-offline-donation_email_message' ) ) ? give_get_option( 'new-offline-donation_email_message' ) : give_get_default_donation_notification_email(),
Replace by:
$this->config['default_email_message'] = ( false !== give_get_option( 'new-offline-donation_email_message' ) ) ? give_get_option( 'new-offline-donation_email_message' ) : $this->get_default_email_message();

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-fresh"Keep Fresh" issues should not be marked as stale.type: bugExisting functionality is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions