Details
-
Bug
-
Status: Closed
-
High
-
Resolution: Fixed
-
1.11.05, 1.11.06, 1.11.07, 1.13.00, 1.13.01, 1.13.02, 1.13.03
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 true;
}
It should be:
public boolean isDeleteAllowed(JcrNodeModel model) {
for (HstModelContext m : models) {
if (model.equals(m.getModel())) { return false; }
}
return true;
}
I attached patch with the fix.