Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-219

If I try to modify an input text limited to x characters, an error occurs{code}TypeError: org.ametys.forms._currentMinNode is null{code}

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.10.0, 2.0.0
    • 1.9.0, 2.0.0
    • None
    • None
    • FF 45.0.1

      How to reproduce :

      • create an form
      • add a input text limited to 4 characters max
      • save
      • edit again the content and click on the field limited to 4 characters in order to modify it
        > an error occurs

          [FORMS-219] If I try to modify an input text limited to x characters, an error occurs{code}TypeError: org.ametys.forms._currentMinNode is null{code}

          Laure Lopez added a comment -

          I do not manage to reproduce it on a 3.8.1

          Laure Lopez added a comment - I do not manage to reproduce it on a 3.8.1

          Reproduced and fixed for v4, but did not manage to reproduce it in v3. Do you still manage to reproduce it ?

          Quentin Glinel-Mortreuil (Inactive) added a comment - Reproduced and fixed for v4, but did not manage to reproduce it in v3. Do you still manage to reproduce it ?

          Laure Lopez added a comment -

          How to reproduce :

          • create a new page
          • in this page insert a new article
          • in this article add a form : 2 input text and a button to submit
          • The first input text : limit to 4 characters
          • save the content
          • re-open the content
          • clic on the first input text
          • in the ribbon, clic on the field to modify the limitation
            > an error occurs :
            TypeError: this._currentMinNode is null
            ._testMinMaxValue@http://berlioz.anyware.corp:8122/cms/plugins/forms/resources/js/Ametys/plugins/forms/Components.js:1770:7
            .inputMaxListener@http://berlioz.anyware.corp:8122/cms/plugins/forms/resources/js/Ametys/plugins/forms/Components.js:1745:24
            ExtFunction.bind/<@http://berlioz.anyware.corp:8122/cms/plugins/extjs6/resources/ext-all-debug.js:6696:32
            .executeFunctionByName@http://berlioz.anyware.corp:8122/cms/plugins/core-ui/resources/js/Ametys.js:409:11
            ._onSelectionChanged@http://berlioz.anyware.corp:8122/cms/plugins/cms/resources/js/Ametys/cms/editor/EditorFieldController.js:213:4
            .fire@http://berlioz.anyware.corp:8122/cms/plugins/core-ui/resources/js/Ametys/message/MessageBus.js:166:7
            cb@http://berlioz.anyware.corp:8122/cms/plugins/core-ui/resources/js/Ametys/message/Message.js:279:5
            ExtFunction.bind/<@http://berlioz.anyware.corp:8122/cms/plugins/extjs6/resources/ext-all-debug.js:6711:28
            ExtFunction.defer/<@http://berlioz.anyware.corp:8122/cms/plugins/extjs6/resources/ext-all-debug.js:6901:29

          Laure Lopez added a comment - How to reproduce : create a new page in this page insert a new article in this article add a form : 2 input text and a button to submit The first input text : limit to 4 characters save the content re-open the content clic on the first input text in the ribbon, clic on the field to modify the limitation > an error occurs : TypeError: this ._currentMinNode is null ._testMinMaxValue@http: //berlioz.anyware.corp:8122/cms/plugins/forms/resources/js/Ametys/plugins/forms/Components.js:1770:7 .inputMaxListener@http: //berlioz.anyware.corp:8122/cms/plugins/forms/resources/js/Ametys/plugins/forms/Components.js:1745:24 ExtFunction.bind/<@http: //berlioz.anyware.corp:8122/cms/plugins/extjs6/resources/ext-all-debug.js:6696:32 .executeFunctionByName@http: //berlioz.anyware.corp:8122/cms/plugins/core-ui/resources/js/Ametys.js:409:11 ._onSelectionChanged@http: //berlioz.anyware.corp:8122/cms/plugins/cms/resources/js/Ametys/cms/editor/EditorFieldController.js:213:4 .fire@http: //berlioz.anyware.corp:8122/cms/plugins/core-ui/resources/js/Ametys/message/MessageBus.js:166:7 cb@http: //berlioz.anyware.corp:8122/cms/plugins/core-ui/resources/js/Ametys/message/Message.js:279:5 ExtFunction.bind/<@http: //berlioz.anyware.corp:8122/cms/plugins/extjs6/resources/ext-all-debug.js:6711:28 ExtFunction.defer/<@http: //berlioz.anyware.corp:8122/cms/plugins/extjs6/resources/ext-all-debug.js:6901:29

          Laurence Aumeunier added a comment - - edited

          I cannot reproduce (test with FF and Chrome).
          Could you please retest ?

          Laurence Aumeunier added a comment - - edited I cannot reproduce (test with FF and Chrome). Could you please retest ?

            quentin Quentin Glinel-Mortreuil (Inactive)
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: