diff --git a/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java b/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java index 995008a746..945d64e154 100644 --- a/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java +++ b/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java @@ -23,6 +23,7 @@ import org.apache.commons.chain.Context; import org.exoplatform.services.command.action.Action; +import org.exoplatform.services.jcr.impl.core.PropertyImpl; import org.exoplatform.services.security.ConversationState; /** @@ -50,6 +51,10 @@ public boolean execute(Context context) throws Exception { if(node.canAddMixin("exo:modify")) { node.addMixin("exo:modify"); } + String propertyName =((PropertyImpl) item).getInternalName().getName(); + if (propertyName.equals("documentViews") || propertyName.equals("documentViewers")) { + return false; + } node.setProperty("exo:lastModifiedDate", new GregorianCalendar()); node.setProperty("exo:lastModifier",userName); return false;