Some checkout panes (for example, the payment checkout pane) do not have a review callback. However, if you visit the checkout settings for such a checkout pane, the option "Include this pane on the Review checkout pane." is shown (and checked).
Patch attached hides this checkbox if a checkout pane does not have a review callback.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1397096-7.patch | 1.19 KB | amateescu |
| #5 | 1397096-5.patch | 1.75 KB | amateescu |
| hide-review-option-checkout-panes.patch | 1.29 KB | mr.baileys |
Comments
Comment #1
rszrama commentedSmart patch and a no-brainer. I think I noticed this when recording the Drupal Commerce for Beginners videos... silly for that checkbox to appear on the Review pane itself, for example. : P
Committed!
Comment #2
amateescu commentedCross-post :)
Comment #3
amateescu commentedRestoring status.
Comment #5
amateescu commentedThis commit introduced a notice that appears after saving a checkout pane that doesn't have a review callback.
Comment #7
amateescu commentedOk then, let's go simple :)
Comment #8
nmc commentedThis patch seems to be working for me. Thanks!
Comment #9
rszrama commentedCommitted.
Comment #10
imiksuAs a reference for #5 comment, I post the notice error message:
This was noticed today also in #1443656: Notice: Undefined index: review in commerce_checkout_pane_settings_form_save_submit(), line 286.
The patch works for me :)