Skip to content
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

Merged

Conversation

jvos
Copy link

@jvos jvos commented Oct 20, 2020

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.

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Oct 20, 2020

(Standard links)

@civibot civibot bot added the master label Oct 20, 2020
@seamuslee001
Copy link
Contributor

Jenkins test this please

@eileenmcnaughton
Copy link
Contributor

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

@jvos
Copy link
Author

jvos commented Oct 22, 2020

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

@eileenmcnaughton
Copy link
Contributor

@jvos - I mean a comment in the code - for future us

@eileenmcnaughton
Copy link
Contributor

Also - that red x - is style warnings - https://test.civicrm.org/job/CiviCRM-Core-PR/37568/

@eileenmcnaughton
Copy link
Contributor

Thanks for the comment - you having quite won the battle with our style checker yet

Screen Shot 2020-10-23 at 9 54 37 AM

@eileenmcnaughton
Copy link
Contributor

@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

@jvos jvos force-pushed the set-id-postProcess-mailing-Component branch from 68fd9d8 to c3695bd Compare October 26, 2020 09:09
Added comment and removed whitespace

Removed empty line.
@jvos jvos force-pushed the set-id-postProcess-mailing-Component branch from c3695bd to f7a6754 Compare October 26, 2020 09:11
@eileenmcnaughton
Copy link
Contributor

thanks! One last task - can your PR yourself into Contributors.yml

https://github.com/civicrm/civicrm-core/blob/master/contributor-key.yml

@eileenmcnaughton eileenmcnaughton merged commit ee6e177 into civicrm:master Oct 26, 2020
@jvos
Copy link
Author

jvos commented Oct 27, 2020

It's was a battle bot i won ;) Thanks for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants