Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1175023
D395.id1045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Oct 3, 9:31 AM
Size
799 B
Mime Type
text/x-diff
Expires
Sat, Oct 4, 9:31 AM (18 h, 29 m)
Engine
blob
Format
Raw Data
Handle
761933
Attached To
D395: MINC-196 - Harden check for "PaymentCCExpMonth" and "PaymentCCExpYear" sale order fields
D395.id1045.diff
View Options
Index: branches/5.2.x/units/orders/orders_item.php
===================================================================
--- branches/5.2.x/units/orders/orders_item.php
+++ branches/5.2.x/units/orders/orders_item.php
@@ -31,8 +31,12 @@
parent::SetFieldsFromHash($hash, $set_fields);
$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->SetField('PaymentCCExpDate', 0);
}
Event Timeline
Log In to Comment