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

Sometimes only one item gets handed over to actions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.7
    • Fix Version/s: 5.3.10, 5.4.1
    • Component/s: actionbar
    • Labels:
      None
    • Patch included:
      Yes
    • Magnolia Release:
      5.3.10, 5.4.1

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                Time Tracking

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