jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/355126 )
Change subject: Another fix for 474cb30ce9f7
......................................................................
Another fix for 474cb30ce9f7
Change-Id: I3ef9b0ed40c2e2a13d39fa7afe5dc479ba1403a0
---
M includes/forminputs/PF_TreeInput.php
1 file changed, 4 insertions(+), 2 deletions(-)
Approvals:
Yaron Koren: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/forminputs/PF_TreeInput.php
b/includes/forminputs/PF_TreeInput.php
index 860c1d4..8758d51 100644
--- a/includes/forminputs/PF_TreeInput.php
+++ b/includes/forminputs/PF_TreeInput.php
@@ -179,8 +179,10 @@
$text .= Html::openElement( 'li', $liAttribs );
$dummy_str = "REPLACE THIS TEXT";
+
+ $cur_input_name = $input_name;
if ( self::$multipleSelect ) {
- $input_name .= "[" . $dummy_str . "]";
+ $cur_input_name .= "[" . $dummy_str . "]";
}
$nodeAttribs = array(
'tabindex' => $wgPageFormsTabIndex,
@@ -191,7 +193,7 @@
$nodeAttribs['checked'] = true;
}
- $text .= Html::input( $input_name, $node->title,
$inputType, $nodeAttribs );
+ $text .= Html::input( $cur_input_name, $node->title,
$inputType, $nodeAttribs );
$text .= $node->title . "\n";
}
--
To view, visit https://gerrit.wikimedia.org/r/355126
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3ef9b0ed40c2e2a13d39fa7afe5dc479ba1403a0
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/PageForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits