From fd4ed6aaeb2a5697b2f75637ff85e6b0acea5dc6 Mon Sep 17 00:00:00 2001
From: Alex <shubenkin.alexander@gmail.com>
Date: Sat, 22 May 2021 02:41:38 +0700
Subject: [PATCH] Fix order

This change fixes promotion pages order.
---
 CHANGELOG.txt                                              | 1 +
 CONTRIBUTORS.rst                                           | 1 +
 .../includes/searchpromotion_form.html                     | 7 +++----
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 10ca80ccab..0ba5029997 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -16,6 +16,7 @@ Changelog
  * Fix: The Wagtail admin urls will now respect the `APPEND_SLASH` setting (Tidjani Dia)
  * Fix: Prevent “Forgotten password” link from overlapping with field on mobile devices (Helen Chapman)
  * Fix: Snippet admin urls are now namespaced to avoid ambiguity with the primary key component of the url (Matt Westcott)
+ * Fix: Save order of promoted search results (Hardcodd)
 
 
 2.13.1 (xx.xx.xxxx) - IN DEVELOPMENT
diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst
index 0009370d9f..d3cdf5d85f 100644
--- a/CONTRIBUTORS.rst
+++ b/CONTRIBUTORS.rst
@@ -515,6 +515,7 @@ Contributors
 * Andre Fonseca
 * Tidjani Dia
 * Jan Seifert
+* hardcodd
 
 Translators
 ===========
diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotion_form.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotion_form.html
index e36f2524f6..31629361cf 100644
--- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotion_form.html
+++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotion_form.html
@@ -16,9 +16,8 @@
                 {% include "wagtailadmin/shared/field.html" with field=form.description only %}
             </li>
         </ul>
-
-        {{ form.id }}
-        {{ form.ORDER }}
-        {{ form.DELETE }}
     </fieldset>
+    {{ form.id }}
+    {{ form.ORDER }}
+    {{ form.DELETE }}
 </li>