Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/units/orders/orders_item.php
Show All 25 Lines | |||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function SetFieldsFromHash($hash, $set_fields = Array ()) | public function SetFieldsFromHash($hash, $set_fields = Array ()) | ||||
{ | { | ||||
parent::SetFieldsFromHash($hash, $set_fields); | parent::SetFieldsFromHash($hash, $set_fields); | ||||
$options = $this->GetFieldOptions('PaymentCCExpDate'); | $options = $this->GetFieldOptions('PaymentCCExpDate'); | ||||
$month_field = $options['month_field']; | |||||
$year_field = $options['year_field']; | |||||
if ( $this->GetDirtyField($options['month_field']) || $this->GetDirtyField($options['year_field']) ) { | if ( (isset($hash[$month_field]) && $this->GetDirtyField($month_field)) | ||||
|| (isset($hash[$year_field]) && $this->GetDirtyField($year_field)) | |||||
) { | |||||
$this->SetDirtyField('PaymentCCExpDate', 0); | $this->SetDirtyField('PaymentCCExpDate', 0); | ||||
$this->SetField('PaymentCCExpDate', 0); | $this->SetField('PaymentCCExpDate', 0); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Returns gateway data based on payment type used in order | * Returns gateway data based on payment type used in order | ||||
* | * | ||||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |