Sending notification creates empyty 'Activity'

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
vakacjus
Posts: 1
Joined: 07 Dec 2023, 11:48

Sending notification creates empyty 'Activity'

Post by vakacjus »

Hello, Im using mantis 2.26. I recently got it updated from 1.2.* and before when comment message were empty, there was no add to node.
Now there is an empty item in it, is there a work-around for this ? Thanks!

@edit Happens when you send notification to someone with nothing in text area.

@@edit [quick lookin] I noticed line 122 of bug_reminder.php, is this if statement correct to prohibit when no text inside comment body 'if ( ! is_blank($p_bugnote_text) ) {' ? or should i go deeper to bugnote_add.php ? I still want it to send eMail tho
cas
Posts: 1622
Joined: 11 Mar 2006, 16:08
Contact:

Re: Sending notification creates empyty 'Activity'

Post by cas »

This is handled via function email_bugnote_add within core/email_api.php, there is no check on existing text because it can also be used to just add a file and/o to just handle time tracking.
Post Reply