-
-
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
CRM-21005, "Record Payment" dialogue lacks required field and is clunky #10817
Conversation
---------------------------------------- * CRM-21005: "Record Payment" dialogue lacks required field and is clunky https://issues.civicrm.org/jira/browse/CRM-21005
---------------------------------------- * CRM-21005: "Record Payment" dialogue lacks required field and is clunky https://issues.civicrm.org/jira/browse/CRM-21005
@@ -100,7 +100,7 @@ | |||
</td> | |||
</tr> | |||
<tr class="crm-payment-form-block-payment_instrument_id"> | |||
<td class="label">{$form.payment_instrument_id.label}</td> | |||
<td class="label">{$form.payment_instrument_id.label} <span class="crm-marker" title="{ts}This field is required.{/ts}">*</span></td> |
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.
@pradpnayak why can't we change at backend by setting required parameter TRUE for payment_instrument_id
here ?
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.
Because the same form is used to pay as a credit card using payment processor, in those case this field should not be required.
tested and confirmed. |
@@ -252,7 +255,7 @@ public function buildQuickForm() { | |||
$this->add('select', 'payment_instrument_id', | |||
ts('Payment Method'), | |||
array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::paymentInstrument(), | |||
FALSE, | |||
TRUE, |
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.
@pradpnayak I have set required = TRUE because this field is present only in backoffice form not on live mode, see the check is made on line 252 above. Also tested in my local and it's working fine w/o live mode.
My bad :(, Tested works fine. |
@colemanw can you please test and merge this PR? |
Overview
This PR holds fix
Before
After
)