Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Summary:
      A console exception is happening when building a Calculate action with more than one numeric field.

      Steps to reproduce:

      1. Go to System Settings > Forms > Enable the experimental interface;
      2. Go to Content > Forms;
      3. Click to add a New Form;
      4. Add at least two numeric fields;
      5. Open the browser console;
      6. Go to Rules tab > Add a new Rule;
      7. At Actions, select Calculate, the console error will happen when:
        1. Select one of the numeric fields to display the result ("Choose a Field to Show the Result");
        2. Select one of the numeric fields to compose the expression ("Add Field");
        3. Switching between the Form and Rules tab;

      Console error:

      ?browserId=other&minifierType=&languageId=en_US&b=7101&t=1542807675647&/o/js/resolved-module/frontend-js-spa-web$senna@2.7.3/lib/surface/Surface.js&/o/js/resolved-module/frontend-js-spa-web$senna@2.7.3/lib/screen/HtmlScreen.js&/o/js/resolved-module/frontend-js-spa-web@3.0.0/liferay/screen/EventScreen.es.js&/o/js/resolved-module/frontend-js-spa-web@3.0.0/liferay/screen/ActionURLScreen.es.js&/o/js/resolved-module/frontend-js-metal-web$metal-debounce@2.0.0/lib/debounce.js&/o/js/resolved-module/frontend-js-metal-web$metal-path-parser@1.0.3/lib/pathParser.js&/o/js/resolved-module/frontend-js-spa-web$senna@2.7.3/lib/route/Route.js&/o/js/resolved-module/frontend-js-spa-web$senna@2.7.3/lib/app/App.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/events/events.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/sync/sync.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.16.5/lib/validators.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.16.5/lib/Config.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.16.5/lib/State.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.16.5/lib/all/state.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/ComponentDataManager.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/ComponentRenderer.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/Component.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/ComponentRegistry.js&/o/js/resolved-module/frontend-js-metal-web$metal-component@2.16.5/lib/all/component.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.7.0/lib/validators.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.7.0/lib/Config.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.7.0/lib/State.js&/o/js/resolved-module/frontend-js-metal-web$metal-state@2.7.0/lib/all/state.js:147 Warning: Error: Invalid state passed to 'items'. Validator for items[0] says: "Error: Invalid state passed to 'items.type'. Expected one of the following values: ["checkbox","group","item","radio","radiogroup","separator"]. Passed to 'ClayDropdownBase'. " Passed to 'ClayDropdownBase'.
      

      Expected result:
      No console exception should happen when building a Calculate action with more than one numeric field.

      Actual result:
      A console exception is happening when building a Calculate action with more than one numeric field. If there is only one numeric field, the issue is not happening.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                51 weeks, 6 days ago

                Packages

                Version Package