------------------------------------------------------------
revno: 8754
committer: Morten Olav Hansen <[email protected]>
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";
}
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp