Fix displaying array order for settings of type array

the *_setting_order was missing from the SELECT queries for all 3 places I could find that use this mechanism. The device settings don't seem to use it.
This commit is contained in:
demonspork
2020-10-19 18:46:38 -05:00
parent 18cf392b84
commit 80fa9cfe7d
3 changed files with 3 additions and 3 deletions

View File

@@ -319,7 +319,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//pre-populate the form
if (is_uuid($_GET["id"]) && count($_GET) > 0 && $_POST["persistformvar"] != "true") {
$user_setting_uuid = $_GET["id"];
$sql = "select user_setting_category, user_setting_subcategory, user_setting_name, user_setting_value, cast(user_setting_enabled as text), user_setting_description ";
$sql = "select user_setting_category, user_setting_subcategory, user_setting_name, user_setting_value, user_setting_order, cast(user_setting_enabled as text), user_setting_description ";
$sql .= "from v_user_settings ";
$sql .= "where user_setting_uuid = :user_setting_uuid ";
$sql .= "and user_uuid = :user_uuid ";