XZise has uploaded a new change for review. https://gerrit.wikimedia.org/r/222927
Change subject: [FIX] Replace section/label according to the names ...................................................................... [FIX] Replace section/label according to the names The options 'Change link target and label' and 'Change link target and section' currently would replace the property not listed in them (including the target). So 'Change link target and section' would use the target's page as target and the target's page's title as the label. But instead if should replace the section and reuse the old label. Bug: T104805 Change-Id: Ic6f3d1dd0d2e56a639ebf74e89834cf02d7b224a --- M pywikibot/bot.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/27/222927/1 diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 57e8ec0..4d5db37 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -865,9 +865,9 @@ ('replace', StaticChoice('Change link target', 't', self._new.canonical_title())), ('replace_section', LinkChoice('Change link target and section', - 's', self, True)), + 's', self, False)), ('replace_label', LinkChoice('Change link target and label', - 'l', self, False)), + 'l', self, True)), ('replace_all', StaticChoice('Change complete link', 'c', self._new)), ] -- To view, visit https://gerrit.wikimedia.org/r/222927 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic6f3d1dd0d2e56a639ebf74e89834cf02d7b224a Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: XZise <commodorefabia...@gmx.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits