Project

General

Profile

Actions

Bug #1336

closed

re-adding WFileUpload to a layout fails in latest git

Added by Boris Nagaev almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
06/21/2012
Due date:
% Done:

0%

Estimated time:

Description

Hello!

WFileUpload is added to a layout.

Changed() signal is connected to .upload() method.

Upload() signal is connected to a function, clearing the layout and adding new WFileUpload to it.

The code attached works for Wt <= 3.2.1, but fails in latest git (b50f9b97f49054abb0fe3a3ed0ec8b5e8da83ebf).

Error message in browser: "Wt internal error: TypeError: Cannot set property 'onchange' of null, code: undefined, description: undefined".

This bug was found during chatting on ##wt


Files

layout-fileupload.cpp (735 Bytes) layout-fileupload.cpp Boris Nagaev, 06/21/2012 07:53 PM
Actions #1

Updated by Koen Deforche almost 12 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.2.2

Hey,

Thanks for the test case. Fixed in my git copy and will push later today.

Regards,

koen

Actions #2

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed

Released in Wt 3.2.2

Actions

Also available in: Atom PDF