https://bugzilla.wikimedia.org/show_bug.cgi?id=37085
Web browser: ---
Bug #: 37085
Summary: Uncaught TypeError: Cannot read property 'length' of
undefined (on function "submitDragDrop")
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: easy, javascript
Severity: normal
Priority: Unprioritized
Component: LiquidThreads
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
On function "submitDragDrop", there is a line[1] like this
----
if ( params.subject.length == 0 ) {
----
but when I follow the steps to drag a comment to a new location[2] (on a page
such as [3]), it causes this error:
----
Uncaught TypeError: Cannot read property 'length' of undefined lqt.js:1553
window.liquidThreads.submitDragDrop lqt.js:1553
buttons.(anonymous function) lqt.js:1420
(anonymous function) jquery.ui.dialog.js:392
jQuery.event.dispatch load.php:3332
jQuery.event.add.elemData.handle.eventHandle load.php:2941
XHR finished loading:
"https://www.mediawiki.org/w/api.php?action=query&list=threads&thid=13985&format=json&thprop=id%7Csubject%7Cparent%7Cmodified".
----
I was using Google Chrome 19.0.1084.46 when I tested.
BTW: instead of "length == 0" it should be "length === 0".
[1] Last touched by Thomas:
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/LiquidThreads.git;a=blobdiff;f=lqt.js;h=27127208707f44cdb586b855721f872afeb3bfb2;hp=fc516a01ba37f1cc9690ea04027a89e9cde4370b;hb=dd6f8fcd258a47f863d2a8c5930eae3a3b1ded70;hpb=3d62392a67b0499a67c6db226081206016288fad
[3]
https://www.mediawiki.org/wiki/Thread:Talk:Berlin_Hackathon_2012/Ops_sprint?debug=1
--
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