dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16068
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6004: minor fix
------------------------------------------------------------
revno: 6004
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-02-17 12:01:36 +0700
message:
minor fix
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.java
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.java 2012-02-16 23:23:38 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.java 2012-02-17 05:01:36 +0000
@@ -31,10 +31,12 @@
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.Projections;
+import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.hisp.dhis.dataelement.DataElement;
import org.hisp.dhis.dataset.DataSet;
@@ -94,7 +96,7 @@
@Override
public Collection<LockException> getCombinations()
- {
+ {
final String sql = "SELECT DISTINCT datasetid, periodid FROM LockException";
final Collection<LockException> lockExceptions = new ArrayList<LockException>();
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2012-02-16 12:07:10 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2012-02-17 05:01:36 +0000
@@ -1,6 +1,5 @@
<!DOCTYPE HTML>
-<!-- <html#if( $offline && $offline == "true" ) manifest="../dhis-web-commons/cacheManifest.action"#end> -->
-<html>
+<html#if( $offline && $offline == "true" ) manifest="../dhis-web-commons/cacheManifest.action"#end>
<head>
<title>DHIS 2</title>
<link type="text/css" rel="stylesheet" media="screen" href="../dhis-web-commons/javascripts/jQuery/ui/css/redmond/jquery-ui-1.8.12.custom.css" />
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java 2012-02-16 12:58:37 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java 2012-02-17 05:01:36 +0000
@@ -220,7 +220,7 @@
{
for ( Period period : periods )
{
- if ( dataSetService.isLocked( organisationUnit, dataSet, period ) )
+ if ( dataSetService.isLocked( dataSet, period, organisationUnit, null ) )
{
lockedPeriods.add( period );
}