Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8025

menu-*-action not correctly handled in workflow

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • 4.2.0
    • 4.0RC2
    • None
    • None

      One of my workflow steps has a custom action :

      <action>
          <menu-7-action>fr.ametys.workflow.actions.RefuseWorkflowAction.doAction</menu-7-action>
      </action>
      

      But once a custom action has been defined, a javascript exception is raised when clicking on the button.

      Uncaught TypeError: name.split is not a function
       at constructor.getFunctionByName (Ametys.js:362)
       at constructor.executeFunctionByName (Ametys.js:397)
       at constructor.onPress (ButtonController.js:513)
       at constructor.handler (ext-all-debug.js:6696)
       at Object.callback (ext-all-debug.js:8497)
       at constructor.fireHandler (ext-all-debug.js:132238)
       at constructor.onClick (ext-all-debug.js:132722)
       at constructor.fire (ext-all-debug.js:20326)
       at constructor.fire (ext-all-debug.js:32684)
       at constructor.publish (ext-all-debug.js:32660)
      

          [CMS-8025] menu-*-action not correctly handled in workflow

          Pierre Gros (Inactive) made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Fix Version/s New: 4.2.0 [ 14425 ]
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          works for me in 4.2

          Raphaël Franchet added a comment - works for me in 4.2
          Pierre Gros (Inactive) made changes -
          Attachment Original: capture-for-jira-screenshot-20170216-151716-663.png [ 19001 ]
          Pierre Gros (Inactive) made changes -
          Attachment New: Capture 2017-02-04 at 15.29.28.png [ 19002 ]
          Pierre Gros (Inactive) made changes -
          Description Original: One of my workflow steps has a custom action :
          <action>
                                   <menu-7-action>fr.ametys.workflow.actions.RefuseWorkflowAction.doAction</menu-7-action>
                                   </action>

          But once a custom action has been defined, a javascript exception is raised when clicking on the button.

          Uncaught TypeError: name.split is not a function
              at constructor.getFunctionByName (Ametys.js:362)
              at constructor.executeFunctionByName (Ametys.js:397)
              at constructor.onPress (ButtonController.js:513)
              at constructor.handler (ext-all-debug.js:6696)
              at Object.callback (ext-all-debug.js:8497)
              at constructor.fireHandler (ext-all-debug.js:132238)
              at constructor.onClick (ext-all-debug.js:132722)
              at constructor.fire (ext-all-debug.js:20326)
              at constructor.fire (ext-all-debug.js:32684)
              at constructor.publish (ext-all-debug.js:32660)
          New: One of my workflow steps has a custom action :
          {code:xml}<action>
              <menu-7-action>fr.ametys.workflow.actions.RefuseWorkflowAction.doAction</menu-7-action>
          </action>
          {code}
          But once a custom action has been defined, a javascript exception is raised when clicking on the button.
          {noformat}Uncaught TypeError: name.split is not a function
           at constructor.getFunctionByName (Ametys.js:362)
           at constructor.executeFunctionByName (Ametys.js:397)
           at constructor.onPress (ButtonController.js:513)
           at constructor.handler (ext-all-debug.js:6696)
           at Object.callback (ext-all-debug.js:8497)
           at constructor.fireHandler (ext-all-debug.js:132238)
           at constructor.onClick (ext-all-debug.js:132722)
           at constructor.fire (ext-all-debug.js:20326)
           at constructor.fire (ext-all-debug.js:32684)
           at constructor.publish (ext-all-debug.js:32660)
          {noformat}
          Pierre Gros (Inactive) made changes -
          Attachment New: capture-for-jira-screenshot-20170216-151716-663.png [ 19001 ]
          Pierre Gros (Inactive) created issue -

            Unassigned Unassigned
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: