From d3e6ee7ab2dfe983bd170b25f5d837d60bf53722 Mon Sep 17 00:00:00 2001
From: root <root@dsv.su.se>
Date: Wed, 8 Mar 2023 10:04:13 +0100
Subject: [PATCH] Fixed too many fields showing up when creating a new product

---
 html/fragments.html     | 2 ++
 include/ProductPage.php | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/html/fragments.html b/html/fragments.html
index 3fade23..dcaca53 100644
--- a/html/fragments.html
+++ b/html/fragments.html
@@ -306,6 +306,8 @@
     <button>Ladda upp</button>
   </form>
 </div>
+
+¤¤ product_meta ¤¤
 <div id="product-history">
   <h2>Artikelhistorik</h2>
   ¤history¤
diff --git a/include/ProductPage.php b/include/ProductPage.php
index b0fefb4..57cefd8 100644
--- a/include/ProductPage.php
+++ b/include/ProductPage.php
@@ -86,7 +86,9 @@ class ProductPage extends Page {
                 $fields['checkout_hidden'] = '';
             }
         }
-        return replace($fields, $this->fragments['product_form']);
+        $out = replace($fields, $this->fragments['product_form']);
+        $out .= replace($fields, $this->fragments['product_meta']);
+        return $out;
     }
 
     private function build_history_table($history) {