Problem/Motivation
I have set "Include updated posts".
With the latest 2.0 dev the body content is duplicated if New content has been added and existing content has been updated:
Recent new or updated pages - 2 new posts
1. aaatest. Read more2. bbbtest. Read more
Recent new or updated pages - 2 new posts
1. aaatest. Read more2. bbbtest. Read more
Also, notice above the line break after "Read more" has vanished and all content is appearing as one long line in the email.
Previous versions:
Recent new or updated pages - 2 new posts
1. aaatest. Read more
2. bbbtest. Read more
No duplication.
notify.module has the following line inserted twice (the previous versions didn't):
175: $message['body'][] = Markup::create($params['content']);
176: $message['body'][] = Markup::create($params['content']);
I don't know if that is what is causing the repeat.
Thanks
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#6 | 3226378-6.patch | 469 bytes | larisse |
Comments
Comment #2
CBEEM CreditAttribution: CBEEM as a volunteer commentedIn my case I removed line 176:
// $message['body'][] = Markup::create($params['content']);
Seems to work.
I also put in a line break.
Now I get this:
Recent new or updated pages - 2 new posts
1. ccctest. Read more
2. dddtest. Read more
Before these changes I got this:
Recent new or updated pages - 2 new posts
1. ccctest. Read more2. dddtest. Read more
Recent new or updated pages - 2 new posts
1. ccctest. Read more2. dddtest. Read more
Thx
Comment #3
larisse CreditAttribution: larisse at CI&T commentedHi @CBEEM!
I'm not able to reproduce this error.
Are you using the latest version of the 2.0.x-dev branch?
I check the lines that you comment, but it's different, like you can see in the image.
Comment #4
CBEEM CreditAttribution: CBEEM as a volunteer commentedI thought I was, but I just checked and the extra line is not in my latest download.
I have so many different versions of this now I'm getting confused.
I have no idea where the extra line came from, but removing it fixes the issue.
Thanks :)
Comment #5
CBEEM CreditAttribution: CBEEM as a volunteer commentedI realised that I had dragged the Notify module into Votingapi with FTP, so I had 2 active versions competing on the production site. One had the duplicated line in it. Oops.
I got rid of the second one.
I have the latest dev up in the correct place but am still receiving the emails in one long line:
1. ccctest. Read more2. dddtest. Read more
This gets hard to read when there are multiple nodes added/edited.
Thanks :)
Comment #6
larisse CreditAttribution: larisse at CI&T commentedHi @CBEEM!
I able to reproduce your issue. I think this patch fix this. Can you test, please?
Comment #7
gislelarisse,
thanks for the patch.
I'll await a review from CBEEM before proceeding.
Comment #8
CBEEM CreditAttribution: CBEEM as a volunteer commentedYes that worked, thank you :)
Comment #9
larisse CreditAttribution: larisse at CI&T commentedThank @CBEEM!
Comment #11
gisleCommitted. Sorry about the delay.