Last modified: 2013-12-27 13:56:25 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 T33343, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31343 - File upload not working right with multiple-instance templates.
File upload not working right with multiple-instance templates.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-04 12:17 UTC by Neill Mitchell
Modified: 2013-12-27 13:56 UTC (History)
1 user (show)

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


Attachments
Result of clikcing on Upload button (44.56 KB, image/png)
2011-10-04 12:17 UTC, Neill Mitchell
Details

Description Neill Mitchell 2011-10-04 12:17:26 UTC
Created attachment 9153 [details]
Result of clikcing on Upload button

Hi.

I am using a multiple instance template that has an uploadable field for a picture:

{{{for template|Page Item|multiple|add button text=Add a Page Item}}}
{|class="item"
!Headline
|{{{field|Headline|size=60}}}
|-
!Text
|
{{{field|Text|input type=textarea|rows=8|cols=60}}}
|-
! Picture:
| {{{field|Picture Item|uploadable|size=60}}}
|}
{{{end template}}}

If I have a single instance on a page then the upload dialog pops up normally, you choose the file, click upload and the dialog exits normally.
However, if I have >1 instance of the template on a page, the upload dialog pops up, you choose the file, click upload but then the dialog goes white and stays open (screenshot attached). The actual file is uploaded though.

In Firebug I see the following error:

parent.document.getElementById("input_6") is null
parent.document.getElementById("inpu...e = 'Charity_Fundraiser.jpg';
http://www.prescientsoftware.co.uk/vermont/index.php/Special:UploadWindow
Line 2

I'm running SF 2.2.1, MW 1.5.6 and MW 1.16.5.

Any ideas?

Thanks.
Comment 1 Yaron Koren 2012-01-13 22:17:03 UTC
Is this still a problem?
Comment 2 Yaron Koren 2013-12-27 13:56:25 UTC
Marking this as fixed.

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


Navigation
Links