-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Auto-set template name based on action #6885
Conversation
@@ -226,6 +226,10 @@ public function send($action, $args = [], $headers = []) | |||
|
|||
call_user_func_array([$this, $action], $args); | |||
|
|||
if (empty($this->template)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we ever thing a joker will use '0.ctp' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ain't no joke. The struggle is real.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I replace by is_null()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use === null
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep forgetting, will do that.
@jadb Tests failing |
ping. |
Looks like CS errors unrelated to this PR. |
Should this have new tests added? |
ping |
I'll do it, sorry missed it. Need to start clearing the stuff I assign to myself for a change, been really busy. |
3215e7d
to
0e051bd
Compare
Sorry for the delay. I added the tests and amended the other commit. |
Auto-set template name based on action
With this change setting custom template using You are forced to set |
@ADmad Seems like something that should be fixed. |
@markstory I have opened the new issue #7278 explaining the problems with mailer. |
No description provided.