-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/core#1344 Re-work if statements and remove excess ifs #15682
dev/core#1344 Re-work if statements and remove excess ifs #15682
Conversation
(Standard links)
|
@@ -170,8 +163,14 @@ | |||
{$address} | |||
|
|||
{$email} | |||
{/if} {* End ! is_pay_later condition. *} | |||
{/if} | |||
{if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) } |
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.
This if can go
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.
Maybe after the other is merged because I forsee a conflict below
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.
@eileenmcnaughton it will in #15651
0969c6c
to
d88185a
Compare
@eileenmcnaughton i have now rebased this after #15651 has been merged |
Looks good to me! |
@@ -311,32 +311,30 @@ | |||
</tr> | |||
{/if} | |||
|
|||
{if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} | |||
{if $is_pay_later && !$isBillingAddressRequiredForPayLater} |
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.
Dang - this template is the one that needs a test change
d88185a
to
1a7a41e
Compare
@eileenmcnaughton have pulled out the changes to that template |
1a7a41e
to
66af4b3
Compare
Cool getting close now - only one tpl left here & only one search jcalendar! |
Test fail unrelated |
Overview
This removes some excess ifs and re-works the order of the if logic as per #156764 this is a split off from #15651
Before
If logic complicated
After
If logic simplified
ping @eileenmcnaughton