Uploaded image for project: '[Read Only] - HST Configuration Editor'
  1. [Read Only] - HST Configuration Editor
  2. HSTCONFIGEDIT-165

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

    XMLWordPrintable

Details

    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

            Unassigned Unassigned
            llemos Luís Pedro Lemos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: