Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046500
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
Sat, Jun 28, 7:34 PM
Size
729 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:34 PM (8 h, 36 m)
Engine
blob
Format
Raw Data
Handle
676537
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