dubeaud / bugnet

BugNET is an open source issue tracker built with .NET
189 stars 166 forks source link

Emails sent when user clicks Save and there were no changes #205

Open Ellingson opened 8 years ago

Ellingson commented 8 years ago

I have users who don't know that "Cancel" will take them back to the issue list without sending emails to everyone. Instead, they like to click "Save & Return" to get back.

To prevent these empty changelist emails, I added line of code to BugNET PRO 1.5.105.0 in BugNET.BLL\IssueNotificationManager.cs at beginning of method SendIssueNotifications:

public static void SendIssueNotifications(int issueId, IEnumerable<IssueHistory> issueChanges)
{
    // Don't send notifications if change count is zero
    if (issueChanges.Count() == 0) return;