Skip to content

Commit

Permalink
Empty ARRAY is a valid result for shop:onUpdateShippingOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
damanic committed Apr 22, 2022
1 parent efc69f1 commit 7bfdcba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions models/shop_shippingoption.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,11 +1061,8 @@ protected static function filter_applicable_options( $shipping_options, $params)
}

$updated_options = Backend::$events->fire_event(array('name' => 'shop:onUpdateShippingOptions', 'type' => 'update_result'), $result, $params);
if($updated_options){
$result = $updated_options;
}
return is_array($updated_options) ? $updated_options : $result;

return $result;
}


Expand Down

0 comments on commit 7bfdcba

Please sign in to comment.