jenkins-bot has submitted this change and it was merged.
Change subject: Fix group passing to export tab, when underscores are used
......................................................................
Fix group passing to export tab, when underscores are used
Might happen for translatable pages. Fixed by getting a fixed
id from MessageGroups::get.
Change-Id: I34c0ca6f7c9ab553935d963fe57fc5a6cdd1517c
---
M specials/SpecialTranslate.php
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Siebrand: Looks good to me, approved
jenkins-bot: Verified
diff --git a/specials/SpecialTranslate.php b/specials/SpecialTranslate.php
index 085dd00..13e4da0 100644
--- a/specials/SpecialTranslate.php
+++ b/specials/SpecialTranslate.php
@@ -322,6 +322,9 @@
$this->options = $nondefaults + $defaults;
$this->group = MessageGroups::getGroup( $this->options['group']
);
+ if ( $this->group ) {
+ $this->options['group'] = $this->group->getId();
+ }
$this->task = TranslateTasks::getTask( $this->options['task'] );
if ( $this->group && MessageGroups::isDynamic( $this->group ) )
{
--
To view, visit https://gerrit.wikimedia.org/r/99173
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I34c0ca6f7c9ab553935d963fe57fc5a6cdd1517c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits