From 3766b3c82e6080a5996db492927987898087559a Mon Sep 17 00:00:00 2001 From: Martin B Date: Sat, 20 Apr 2024 15:30:37 +0100 Subject: [PATCH] Add min/max values to priority --- src/SpecialPage/SpecialResourceLoaderArticles.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SpecialPage/SpecialResourceLoaderArticles.php b/src/SpecialPage/SpecialResourceLoaderArticles.php index d5589d4..c682787 100644 --- a/src/SpecialPage/SpecialResourceLoaderArticles.php +++ b/src/SpecialPage/SpecialResourceLoaderArticles.php @@ -137,6 +137,8 @@ private function addPage() { 'type' => 'int', 'required' => true, 'default' => '0', + 'min' => -1000, + 'max' => 1000, ], ]; @@ -227,6 +229,8 @@ private function editPage( $id ) { 'type' => 'int', 'required' => true, 'default' => $row->rla_priority, + 'min' => -1000, + 'max' => 1000, ], ];