diff --git a/changelog/70_UNRELEASED_xxxx.xx.xx.md b/changelog/70_UNRELEASED_xxxx.xx.xx.md
index 2d10a348..bd387d23 100644
--- a/changelog/70_UNRELEASED_xxxx.xx.xx.md
+++ b/changelog/70_UNRELEASED_xxxx.xx.xx.md
@@ -9,6 +9,7 @@
### Stock
- Quantity unit conversions now support transitive conversions, means the QU hierarchy has now unlimited levels (thanks a lot @esclear)
+- Fixed that hiding the "Purchased date" column (table options) on the stock entries page didn't work
### Shopping list
@@ -16,7 +17,7 @@
### Recipes
-- xxx
+- Fixed that hiding the "Requirements fulfilled" column (table options) on the recipes page didn't work
### Meal plan
@@ -32,7 +33,7 @@
### Tasks
-- xxx
+- Fixed that hiding the "Category" column (table options) on the tasks page didn't work
### Batteries
diff --git a/public/js/grocy.js b/public/js/grocy.js
index edd5d66c..da608b07 100644
--- a/public/js/grocy.js
+++ b/public/js/grocy.js
@@ -1029,6 +1029,7 @@ $(".change-table-columns-visibility-button").on("click", function(e)
dataTable.columns().every(function()
{
var index = this.index();
+ var indexForGrouping = index;
var headerCell = $(this.header());
var title = headerCell.text();
var visible = this.visible();
@@ -1041,7 +1042,7 @@ $(".change-table-columns-visibility-button").on("click", function(e)
var shadowColumnIndex = headerCell.attr("data-shadow-rowgroup-column");
if (shadowColumnIndex)
{
- index = shadowColumnIndex;
+ indexForGrouping = shadowColumnIndex;
}
var checked = "checked";
@@ -1076,12 +1077,12 @@ $(".change-table-columns-visibility-button").on("click", function(e)
\
\
';
}