Skip to content

Commit

Permalink
NIJ - correct delete flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Spiegel committed Apr 22, 2016
1 parent 89dcaa2 commit b4ea0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Productsup/Service/ProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ProductData extends Service {
const TYPE_DELTA = 'delta';

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

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

0 comments on commit b4ea0ea

Please sign in to comment.