You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the latest 1.5.6.* branch, there's something fishy in catalog/controller/checkout/manual.php around line 282. Unless I'm missing something, it looks like this code is repeated twice at lines 282 and 298:
Not to mention that "$this->load->model('localisation/country');" is already called a few lines before. I'm not sure the dup code actually causes any issues, it looks like the code is just executed twice without causing any problem. I'm assuming the first instance of the above code should be deleted so the POST params can be checked before the second instance of the code, but it's also odd that even if the required params are missing (e.g. shipping_country_id) it sets the error message but still goes ahead and calls getCountry() anyway, though maybe it handles that cleanly, I haven't tested it.
It may also be that you don't care too much about this file... I didn't see it in the 2.0 master branch, at least not in the same folder.
Ben
The text was updated successfully, but these errors were encountered:
Not a bug, per se, just some wasted cycles.
Looking at the latest 1.5.6.* branch, there's something fishy in catalog/controller/checkout/manual.php around line 282. Unless I'm missing something, it looks like this code is repeated twice at lines 282 and 298:
Not to mention that "$this->load->model('localisation/country');" is already called a few lines before. I'm not sure the dup code actually causes any issues, it looks like the code is just executed twice without causing any problem. I'm assuming the first instance of the above code should be deleted so the POST params can be checked before the second instance of the code, but it's also odd that even if the required params are missing (e.g. shipping_country_id) it sets the error message but still goes ahead and calls getCountry() anyway, though maybe it handles that cleanly, I haven't tested it.
It may also be that you don't care too much about this file... I didn't see it in the 2.0 master branch, at least not in the same folder.
Ben
The text was updated successfully, but these errors were encountered: