From d42ccef92d49a68ac42271602d70a539f7941b35 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Apr 2021 20:33:37 +0200 Subject: [PATCH] Position autoset --- htdocs/admin/website.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/admin/website.php b/htdocs/admin/website.php index 311b67c21f2..aa7d5904c60 100644 --- a/htdocs/admin/website.php +++ b/htdocs/admin/website.php @@ -490,6 +490,9 @@ if ($id) { } } } + if (!isset($obj->position)) { + $obj->position = 1; + } fieldListWebsites($fieldlist, $obj, $tabname[$id], 'add');