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

Form property not removed from _saveFormFields when template is updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.5.0
    • Fix Version/s: 9.5.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: