Skip to content

Commit 827342a

Browse files
authored
Merge pull request #272 from BoulangerV/OX6-151-Fix_SecInvoice_validation
OX6-151: Fix SecInvoice birthdate validation
2 parents 520a4c4 + c0f5a1c commit 827342a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extend/application/controllers/fcPayOnePaymentView.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2732,9 +2732,9 @@ protected function _fcpoValidateBirthdayData($sPaymentId, $aRequestedValues)
27322732
case 'fcpopl_secinstallment':
27332733
case 'fcpopl_secdebitnote':
27342734
$blB2CMode = ! $this->fcpoIsB2BPov();
2735-
$blFieldPresence = isset($aRequestedValues['fcpopl_secinvoice_birthdate_day'])
2736-
&& isset($aRequestedValues['fcpopl_secinvoice_birthdate_month'])
2737-
&& isset($aRequestedValues['fcpopl_secinvoice_birthdate_year']);
2735+
$blFieldPresence = isset($aRequestedValues[$sPaymentId . '_birthdate_day'])
2736+
&& isset($aRequestedValues[$sPaymentId . '_birthdate_month'])
2737+
&& isset($aRequestedValues[$sPaymentId . '_birthdate_year']);
27382738
$blBirthdayRequired = ($blB2CMode || $sPaymentId == 'fcpopl_secinvoice') && $blFieldPresence;
27392739
$blValidBirthdateData = $this->_fcpoValidateSecInvoiceBirthdayData($sPaymentId, $aRequestedValues);
27402740
break;

0 commit comments

Comments
 (0)