Skip to content

Commit b4ea0ea

Browse files
author
Werner Spiegel
committed
NIJ - correct delete flag
1 parent 89dcaa2 commit b4ea0ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Productsup/Service/ProductData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ProductData extends Service {
2929
const TYPE_DELTA = 'delta';
3030

3131
/** @var string this name is reserved to mark products as delete */
32-
private $deleteFlagName = 'pup:isDelete';
32+
private $deleteFlagName = 'pup:isdeleted';
3333

3434
/** @var bool was data already submitted? */
3535
private $didSubmit = false;
@@ -178,7 +178,7 @@ public function setPostLimit($limit) {
178178
* @param $isDelete bool flag if this product is a delete or insert
179179
* @throws Exceptions\ClientException
180180
*/
181-
private function addRow($row,$isDelete) {
181+
private function addRow($row,$isDelete = false) {
182182
if($this->isArrayMultiDimensional($row)) {
183183
throw new Exceptions\ClientException('please pass only one product/row at once, rows are not allowed to contain arrays');
184184
}

0 commit comments

Comments
 (0)