Robert Vogel has submitted this change and it was merged.

Change subject: ResponsibleEditors: Added string filters to WikiExplorer
......................................................................


ResponsibleEditors: Added string filters to WikiExplorer

* Added string filters for responsible editors column in WikiExplorer
* Also added column default width and an id
* => needs merge to master an REL1_23

Change-Id: If10d4d909a58c5ace167cd44117ca5627ae03f93
(cherry picked from commit 0f4b12dcf2c8e4ad8c73522f0051dc4ca427fbe2)
(cherry picked from commit b8b2cd8f84b17c3bca23a9e4bf9b7d8bc737f009)
---
M ResponsibleEditors/ResponsibleEditors.class.php
1 file changed, 7 insertions(+), 2 deletions(-)

Approvals:
  Robert Vogel: Verified; Looks good to me, approved



diff --git a/ResponsibleEditors/ResponsibleEditors.class.php 
b/ResponsibleEditors/ResponsibleEditors.class.php
index 9975ee0..6cfe2b2 100644
--- a/ResponsibleEditors/ResponsibleEditors.class.php
+++ b/ResponsibleEditors/ResponsibleEditors.class.php
@@ -988,7 +988,7 @@
 
        public function onSuperListGetFieldDefinitions(&$aFields) {
                $aFields[] = array(
-                       'name' => 'responsible_editors'
+                       'name' => 'responsible_editors',
                );
                return true;
        }
@@ -997,6 +997,11 @@
                $aColumns[] = array(
                        'header' => wfMessage( 
'bs-responsibleeditors-assignededitors' )->escaped(),
                        'dataIndex' => 'responsible_editors',
+                       'id' => 'responsible_editors',
+                       'filter' => array(
+                               'type' => 'string'
+                       ),
+                       'width' => 200,
                        'hidden' => true
                );
                return true;
@@ -1079,4 +1084,4 @@
        public static function deleteResponsibleEditorsFromCache( $iArticleId ) 
{
                BsCacheHelper::invalidateCache( BsCacheHelper::getCacheKey( 
'ResponsibleEditors', 'getResponsibleEditorsByArticleId', (int)$iArticleId ) );
        }
-}
\ No newline at end of file
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/192526
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If10d4d909a58c5ace167cd44117ca5627ae03f93
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz>
Gerrit-Reviewer: Pwirth <wi...@hallowelt.biz>
Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to