Commit 08cc1fd62e0eda8138ca231bade21450a375b1e9
1 parent
cb340c2b
Exists in
staging
and in
42 other branches
Equal comparison operator to postgresql is '=' not '=='
(ActionItem2200)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/shopping_cart/controllers/shopping_cart_plugin_myprofile_controller.rb
| ... | ... | @@ -24,7 +24,7 @@ class ShoppingCartPluginMyprofileController < MyProfileController |
| 24 | 24 | condition = 'created_at >= ? AND created_at <= ?' |
| 25 | 25 | condition_parameters = [@from, @to+1.day] |
| 26 | 26 | if @status |
| 27 | - condition += ' AND status == ?' | |
| 27 | + condition += ' AND status = ?' | |
| 28 | 28 | condition_parameters << @status |
| 29 | 29 | end |
| 30 | 30 | ... | ... |