Skip to content

Commit a010904

Browse files
2 parents a73ce07 + 0aa1eb3 commit a010904

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/release-compile-changelog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ jobs:
162162
echo "Using branch: $SELECTED_BRANCH"
163163
echo "Generating changelog for version: $VERSION"
164164
165-
# Normalize the version by removing .0 patch if present, as the changelog command does not support it
165+
# Normalize version for use with changelog command.
166+
VERSION=$(echo "$VERSION" | grep -oP '\d+\.\d+\.\d+')
167+
166168
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.0$ ]]; then
167169
VERSION=${VERSION%.0}
168170
fi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Fix an issue when a product is not an object in html order item

plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
?>
105105
</div>
106106
<?php
107-
$step = $product->get_purchase_quantity_step();
107+
$step = $product ? $product->get_purchase_quantity_step() : 1;
108108

109109
/**
110110
* Filter to change the product quantity stepping in the order editor of the admin area.

0 commit comments

Comments
 (0)