Skip to content

Commit

Permalink
1.8.3: #49
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 15, 2023
1 parent c1e9440 commit 51a6eb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Controller/Cart/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@ function execute():Json {return R::p(function():void {
* 2020-01-21
* @used-by self::execute()
*/
private static function product(string $k):P {return ju_product(ju_nat(ju_request($k)), true);}
private static function product(string $k):P {return ju_product(ju_nat(
# 2023-07-15
# "Improve diagnostic messages for the `justuno/cart/add` endpoint":
# https://github.com/JustunoCom/m2/issues/49
ju_request($k) ?: ju_error("The required parameter `{$k}` is missing in the `justuno/cart/add` request.")
), true);}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "justuno.com/m2"
,"version": "1.8.2"
,"version": "1.8.3"
,"description": "Justuno module for Magento 2"
,"type": "magento2-module"
,"homepage": "https://github.com/justunoCom/m2"
Expand Down

0 comments on commit 51a6eb2

Please sign in to comment.