Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046797
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
Sun, Jun 29, 4:53 AM
Size
799 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 4:53 AM (1 h, 46 m)
Engine
blob
Format
Raw Data
Handle
676776
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