https://bugzilla.wikimedia.org/show_bug.cgi?id=31343

       Web browser: ---
             Bug #: 31343
           Summary: File upload not working right with multiple-instance
                    templates.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticForms
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 9153
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9153
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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to