Skip to content

Commit

Permalink
Show ID as locked field instead of hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
iMarbot committed Apr 20, 2024
1 parent ce51cfe commit 78b42b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SpecialPage/SpecialResourceLoaderArticles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 78b42b4

Please sign in to comment.