Skip to content

Commit

Permalink
fix missing label, fix php if no price is set
Browse files Browse the repository at this point in the history
  • Loading branch information
JBinggi committed Feb 13, 2020
1 parent 616c16d commit a5d6596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ INSERT INTO `core_form_button` (`Button_ID`, `label`, `icon`, `title`, `href`, `
CREATE TABLE `article_history` (
`History_ID` int(11) NOT NULL,
`article_idfs` int(11) NOT NULL,
`label` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`comment` TEXT NOT NULL DEFAULT '',
`created_by` int(11) NOT NULL,
`created_date` datetime NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/HistoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private function updateArticlePrice($fNewPrice,$iArticleID) {
return false;
}

if(isset($oArtTbl)) {
if(isset($oArtTbl) && $fNewPrice!='') {
# Save price on article
$oArtTbl->updateAttribute('price_sell',$fNewPrice,'Article_ID',$iArticleID);
}
Expand Down

0 comments on commit a5d6596

Please sign in to comment.