Skip to content

Commit

Permalink
NIJ - allow setting the delete flag, even on inserts
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Spiegel committed Apr 29, 2016
1 parent b4ea0ea commit f62d952
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Productsup/Service/ProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ private function addRow($row,$isDelete = false) {
if($this->finished) {
throw new Exceptions\ClientException('the current batch is already finished, please create a new one');
}
if(array_key_exists($this->deleteFlagName,$row)) {
throw new Exceptions\ClientException('"'.$this->deleteFlagName.'" is a reserved name to flag deleted products, please use another name');
}
if(!array_key_exists('id',$row)) {
throw new Exceptions\ClientException('adding one column "id" to the product data is mandatory');
}
Expand Down

0 comments on commit f62d952

Please sign in to comment.