Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727056
D402.id.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
Mon, Jan 6, 5:39 AM
Size
729 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 5:39 AM (2 d, 22 h ago)
Engine
blob
Format
Raw Data
Handle
537123
Attached To
D402: MINC-198 - Don't use "continue" inside a "switch" statement
D402.id.diff
View Options
Index: branches/5.2.x/units/taxes/taxes_event_handler.php
===================================================================
--- branches/5.2.x/units/taxes/taxes_event_handler.php
+++ branches/5.2.x/units/taxes/taxes_event_handler.php
@@ -172,9 +172,8 @@
if( ($location_id && !$this->check_array($temp, 'StdDestId', $location_id)) ||
($zip && !$this->check_array($temp, 'DestValue', $zip)) )
{
-
- if($tax_object->GetDBField('Type') == 3 && $zip ==''){
- continue;
+ if ( $tax_object->GetDBField('Type') == 3 && $zip == '' ) {
+ break;
}
$temp[$new_id]['TaxZoneDestId'] = $new_id;
@@ -250,4 +249,4 @@
$event->redirect = false;
}
-}
\ No newline at end of file
+}
Event Timeline
Log In to Comment