Skip to content

Commit

Permalink
= 4.2.5.4 =
Browse files Browse the repository at this point in the history
~ Fixed: case save course on Quick Edit, make price save wrong.
  • Loading branch information
tungnxt89 committed Nov 7, 2023
1 parent 8da2212 commit ffa6124
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions inc/background-process/class-lp-background-single-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ protected function save_post() {
* @return void
*/
protected function save_price() {
$has_sale_price = false;
$regular_price = $this->data['_lp_regular_price'] ?? '';
/*if ( empty( $regular_price ) ) {
if ( ! isset( $this->data['_lp_regular_price'] ) ) {
return;
}*/
}

$has_sale_price = false;
$regular_price = (float) $this->data['_lp_regular_price'];

$sale_price = $this->data['_lp_sale_price'] ?? '';
$start_date = $this->data['_lp_sale_start'] ?? '';
Expand Down

0 comments on commit ffa6124

Please sign in to comment.