knguyen 2004/09/30 13:27:29 CEST
Modified files: (Branch: JAHIA-4-0-BRANCH)
src/java/org/jahia/services/pages ContentPage.java
Log:
- we should allow returning a JahiaPage instance if we are in COMPARE MODE ( to be
able to display the page in Versioning )
Revision Changes Path
1.72.2.8 +1 -1 jahia/src/java/org/jahia/services/pages/ContentPage.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/services/pages/ContentPage.java.diff?r1=1.72.2.7&r2=1.72.2.8&f=h
Index: ContentPage.java
===================================================================
RCS file:
/home/cvs/repository/jahia/src/java/org/jahia/services/pages/Attic/ContentPage.java,v
retrieving revision 1.72.2.7
retrieving revision 1.72.2.8
diff -u -r1.72.2.7 -r1.72.2.8
--- ContentPage.java 23 Sep 2004 16:31:24 -0000 1.72.2.7
+++ ContentPage.java 30 Sep 2004 11:27:29 -0000 1.72.2.8
@@ -659,7 +659,7 @@
if (!page.checkReadAccess (user)) {
return null;
}
- if (!operationMode.equals (ParamBean.EDIT)) {
+ if (!operationMode.equals (ParamBean.EDIT) && !operationMode.equals
(ParamBean.COMPARE)) {
// only allow null titles if in edit mode
if (page.getTitle () == null) {
return null;