Prefill username in form when calling Special:Log/<username>
authorJayprakash12345 <0freerunning@gmail.com>
Thu, 26 Jul 2018 16:50:56 +0000 (22:20 +0530)
committerJayprakash12345 <0freerunning@gmail.com>
Thu, 26 Jul 2018 16:50:56 +0000 (22:20 +0530)
Bug: T200446
Change-Id: I3f2fcedee8440d5943e556f7c1c06dfb1085e549

includes/logging/LogEventsList.php

index db97364..559ac87 100644 (file)
@@ -273,6 +273,7 @@ class LogEventsList extends ContextSource {
                        'class' => 'HTMLUserTextField',
                        'label-message' => 'specialloguserlabel',
                        'name' => 'user',
+                       'default' => $user,
                ];
        }