Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4685

Form property not removed from _saveFormFields when template is updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 9.5.0
    • None
    • Security Level: Jimmy
    • None
    • ZK 9.5.1 S1

      Steps to Reproduce

      Run attached zul / java (doesn't work on fiddle)

      Click on "form1" -> "close" -> "form2" -> "close"

      Current Result

      The save _saveFormFields in binder associated with that form still contain the property associated to template number 1

      Saved Form Field Names in Binder: [formContent.commonProp, *formContent.prop1,* formContent.prop2] 

      This will cause exceptions when saving since the binding tries to access a component that no longer exist

      Expected Result

      Bindings associated to removed components should also be removed

      Debug Information

       

      Workaround

      run binder.removeSaveFormFieldNames((Form) myform); when closing the template.

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: