Uploaded image for project: 'HST Configuration Editor'
  1. HST Configuration Editor
  2. HSTCONFIGEDIT-165

Backport 7.9: Method HstContext.isDeleteAllowed calls equals with wrong parameter

    XMLWordPrintable

    Details

    • Similar issues:

      Description

      Method HstContext.isDeleteAllowed calls equals with wrong parameter. The parameter type is HstModelContext, equals expects type JcrNodeModel.
      It is:
      public boolean isDeleteAllowed(JcrNodeModel model) {
      for (HstModelContext m : models) {
      if (model.equals(m))

      { return false; }
      }
      return true;
      }

      It should be:
      public boolean isDeleteAllowed(JcrNodeModel model) {
      for (HstModelContext m : models) {
      if (model.equals(m.getModel())) { return false; }

      }
      return true;
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              llemos Luís Pedro Lemos
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: