Last modified: 2014-01-21 12:55:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29254, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27254 - Link dialog inserts wrong target page
Link dialog inserts wrong target page
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://de.wikipedia.org/wiki/Wikipedi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-08 11:18 UTC by Michael M.
Modified: 2014-01-21 12:55 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2011-02-08 11:18:36 UTC
The link dialog inserts a wrong page as a target page in some cases.
Steps to reproduce:

1. Select a word and click the link icon.
2. Press down key to select a target page from the suggestions. (It is important to use the keyboard only.)
3. Press enter.
The link is inserted correctly.
4. Select another word and click the link icon.
The selected word is displayed both as target and as text.
5. Press enter.
Expected result: The selected word should just be wrapped in brackets.
Actual result: A link the page from step 2 as target and the displayed text form step 4 is inserted.
Comment 1 Brion Vibber 2011-02-12 04:08:32 UTC
I can confirm this on trunk r82002
Comment 2 Brion Vibber 2011-02-12 04:56:23 UTC
Ok, it looks like the set of suggestions don't get reset properly when the dialog reinitializes itself on the second run.

(The dialog isn't destroyed on first completion; it's merely hidden, then re-shown and given new field contents.)

In the dialog's open function, it's calling:

   $( '#wikieditor-toolbar-link-int-target' ).suggestions();

(the actual full setup came earlier, in the init function, and adds the handlers and such).

But in jquery.suggestions.js, it looks like the suggestions container and such don't get cleared here -- they only get created the first time round, then the data is saved, and it isn't recreated.

I can call .suggestions('suggestions', []) to clear the set, but this seems to break the initial load of data.

As I'm not sure where to proceed from here, I'm handing the bug over to Trevor, who seems to have his hands on jquery.suggestions.js :)
Comment 3 sheac 2012-05-13 19:23:36 UTC
This bug has not been touched in at least six months. With this in mind, I've been asked by the bugmeister to bump this bug's priority down from "High". Concerns can be addressed to mah@everybody.org.
Comment 4 Andre Klapper 2013-01-09 13:27:27 UTC
Trevor:
This report has been in ASSIGNED status for more than one year and you are set as its assignee. In case that you are not actively working on a fix, please reset the bug status to NEW/UNCONFIRMED.
In case you do not plan to work on a fix in the near future: Please also edit the "Assigned To" field by clicking "Reset Assignee to default", in order to not prevent potential contributors from working on a fix. Thanks for your help!
[assigned>=1y]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links