Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3415

Sometimes only one item gets handed over to actions

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 5.3.10, 5.4.1
    • 5.3.7
    • actionbar
    • None
    • Yes

      I have an action define like:

      public class MyAction extends AbstractAction<MyActionDefinition> {
          @Inject
          public MyAction(MyActionDefinition definition, List<FileItems> items, ...) {
      ...
          public MyAction(MyActionDefinition definition, FileItem item, ...) {
      ...
      

      If this action is called with multiple items (FileItems) selected, I sometimes only get one item handed over. Looks like the wrong constructor is considered.

      Looks like the following patch solves the issue: https://gist.github.com/mkgl/d4f329d0961c7ec78c65

        Acceptance criteria

              trang.truong Trang Truong
              dlipp Daniel Lipp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - 1h Original Estimate - 1h
                    1h
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 1h
                    1d 1h