-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set id after save for the mailing component in the postProcess #18808
Set id after save for the mailing component in the postProcess #18808
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
Jenkins test this please |
Can you please add a code comment as to why? I'm guessing it's for extension support & it could be 'tidied up' if it's point is not clear |
It's easier to use the posProcess hook in a extension that the id is set after the mailing component (Headers, Footers, and Automated Messages) is saved |
@jvos - I mean a comment in the code - for future us |
Also - that red x - is style warnings - https://test.civicrm.org/job/CiviCRM-Core-PR/37568/ |
@jvos are you able to do one last thing & squash the commits down to 1? You need to do a force push (git push -f ) to push the change up |
68fd9d8
to
c3695bd
Compare
Added comment and removed whitespace Removed empty line.
c3695bd
to
f7a6754
Compare
thanks! One last task - can your PR yourself into Contributors.yml https://github.com/civicrm/civicrm-core/blob/master/contributor-key.yml |
It's was a battle bot i won ;) Thanks for your patience! |
Overview
After save the mailing component (Headers, Footers, and Automated Messages) the id is set in the postProcess.
Before
After save of the mailing component the id is not set.
After
Now the id is set after the mailing component is saved.
Technical Details
The id is set after save $this->_id = $component->id;
Comments
No comments.