-
- Downloads
REST API: fix deleting a product/service.
Add a User parameter to the Product::delete() method to explicitly set the user that performs the action instead of using a global variable. In the calls to Product::delete() with a fetched object, remove the deprecated parameter $id.
Showing
- htdocs/product/card.php 1 addition, 1 deletionhtdocs/product/card.php
- htdocs/product/class/api_products.class.php 1 addition, 2 deletionshtdocs/product/class/api_products.class.php
- htdocs/product/class/product.class.php 3 additions, 2 deletionshtdocs/product/class/product.class.php
- htdocs/webservices/server_productorservice.php 1 addition, 5 deletionshtdocs/webservices/server_productorservice.php
- test/phpunit/ProductTest.php 1 addition, 1 deletiontest/phpunit/ProductTest.php
Loading
Please register or sign in to comment