View Issue Details

IDProjectCategoryView StatusLast Update
0032382mantisbtcode cleanuppublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032382: Duplicated code in email API
Description

The logic to send notifications when adding and deleting bug relationships is duplicated.

The duplicated code should be extracted from email_relationship_added() and email_relationship_deleted(), and moved to a new API function.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master bca90295

2023-04-11 07:20

dregad


Details Diff
New internal API email_relationship_send()

This avoids code duplication in email_relationship_added() and
email_relationship_deleted().

Fixes 0032382
Affected Issues
0032382
mod - core/email_api.php Diff File