https://bugzilla.wikimedia.org/show_bug.cgi?id=39091
Web browser: ---
Bug #: 39091
Summary: wrong check for missing or invalid title in
jquery.wikiEditor.dialogs.config.js
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: WikiEditor
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
See module's code at
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/WikiEditor.git;a=blob;f=modules/jquery.wikiEditor.dialogs.config.js;h=76a3a57e27b6b7d87266171c26baf2a82d9f703a;hb=e7a0484eb56d72e5326282a54288580fdfcd144f
The if conditions at lines 201 and 203 must probably be corrected.
from : if ( page.missing )
to : if ( page.missing !== undefined )
and
from : if ( page.invalid )
to : if ( page.invalid !== undefined )
This code checks the api query result,
which, for instance, has
page.missing === ""
if queried title doesn't exist.
As it is, the "Insert link" dialog shows "Page exists"
for every title inserted in the "Target page or URL:" field.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l