Author: ssenrogn
Date: 2008-01-28 13:32:36 +0100 (Mon, 28 Jan 2008)
New Revision: 6053

Modified:
   
branches/2.16/view-control-spi/src/main/java/no/sesat/search/view/navigation/NavigationManager.java
Log:
SEARCH-4059 - overrides tab if given in the navigation config.

Modified: 
branches/2.16/view-control-spi/src/main/java/no/sesat/search/view/navigation/NavigationManager.java
===================================================================
--- 
branches/2.16/view-control-spi/src/main/java/no/sesat/search/view/navigation/NavigationManager.java
 2008-01-28 11:06:28 UTC (rev 6052)
+++ 
branches/2.16/view-control-spi/src/main/java/no/sesat/search/view/navigation/NavigationManager.java
 2008-01-28 12:32:36 UTC (rev 6053)
@@ -110,6 +110,13 @@
             public String getParameterValue(final NavigationConfig.Nav nav, 
final String parameterName) {
                 final String value = parameters.get(parameterName);
 
+                // TODO: SEARCH-4105 - put this logic somewhere else to make 
things faster.
+                
+                // Overriding the tab with the one defined in the config.
+                if ("c".equals(parameterName) && nav.isOut() && null != 
nav.getTab()) {
+                    return nav.getTab();
+                }
+
                 if (null == value && null != 
dataModel.getParameters().getValue(parameterName)) {
                     return 
dataModel.getParameters().getValue(parameterName).getString();
                 }

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to