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

dd required fields fix and version update #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<author>Veda Consulting</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2016-03-16</releaseDate>
<version>2.1.2</version>
<releaseDate>2017-01-17</releaseDate>
<version>2.1.3</version>
<develStage>stable</develStage>
<compatibility><ver>4.6</ver></compatibility>
<comments></comments>
Expand Down
3 changes: 2 additions & 1 deletion smart_debit_dd.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ function buildForm(&$form) {

function buildForm( &$form ) {
$ddForm = new UK_Direct_Debit_Form_Main();
$ddForm->buildDirectDebit( $form );
// set true brings dd form fields to required
$ddForm->buildDirectDebit( $form, TRUE );
// If we are updating billing address of smart debit mandate we don't need to validate, validation will happen in updateSubscriptionBillingInfo method
if ($form->getVar('_name') == 'UpdateBilling') {
return;
Expand Down