Skip to content

Commit

Permalink
changed "published" to be empty, not zero
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyborn authored Apr 2, 2022
1 parent 3504700 commit c677495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/SimpleERP.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function updateProductCount( IsotopeProductCollection $objOrder ) {
if( $objProduct->simple_erp_disable_on_zero && $objProduct->simple_erp_count <= 0 ) {

$objProduct->simple_erp_count = 0;
$objProduct->published = 0;
$objProduct->published = '';

\Database::getInstance()->prepare("UPDATE ".Product::getTable()." SET simple_erp_count = ?, published = ? WHERE id = ?")->execute( $objProduct->simple_erp_count, $objProduct->published, $objProduct->id );

Expand Down

0 comments on commit c677495

Please sign in to comment.