From 78b42b485404acb253d9054418fe102f00b4c5a9 Mon Sep 17 00:00:00 2001 From: Martin B Date: Sat, 20 Apr 2024 15:02:47 +0100 Subject: [PATCH] Show ID as locked field instead of hidden --- src/SpecialPage/SpecialResourceLoaderArticles.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SpecialPage/SpecialResourceLoaderArticles.php b/src/SpecialPage/SpecialResourceLoaderArticles.php index 27ddc7e..a06399a 100644 --- a/src/SpecialPage/SpecialResourceLoaderArticles.php +++ b/src/SpecialPage/SpecialResourceLoaderArticles.php @@ -192,8 +192,10 @@ private function editPage( $id ) { $row = $res->fetchObject(); $formDescriptor = [ 'Id' => [ - 'type' => 'hidden', + 'label-message' => 'resourceloaderarticles-id', + 'type' => 'int', 'required' => true, + 'disabled' => true, 'default' => $row->rla_id, ], 'Page' => [ @@ -282,7 +284,8 @@ private function deletePage( $id ) { $row = $res->fetchObject(); $formDescriptor = [ 'Id' => [ - 'type' => 'hidden', + 'label-message' => 'resourceloaderarticles-id', + 'type' => 'int', 'required' => true, 'disabled' => true, 'default' => $row->rla_id,