dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19765
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8754: fixed stupid bug..
------------------------------------------------------------
revno: 8754
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-10-29 19:38:31 +0100
message:
fixed stupid bug..
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.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-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java 2012-10-29 14:37:17 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java 2012-10-29 18:38:31 +0000
@@ -91,11 +91,11 @@
String mobileVersion = (String) request.getAttribute( "mobileVersion" );
mobileVersion = mobileVersion == null ? "basic" : mobileVersion;
- if ( mobileVersion.equals( "basic" ) )
+ if ( device.isMobile() && mobileVersion.equals( "basic" ) )
{
url = getRootPath( request ) + "/light/index.action";
}
- else if ( mobileVersion.equals( "smartphone" ) )
+ else if ( device.isMobile() && mobileVersion.equals( "smartphone" ) )
{
url = getRootPath( request ) + "/mobile";
}