Author: bpoussin Date: 2013-07-01 12:51:28 +0200 (Mon, 01 Jul 2013) New Revision: 356 Url: http://chorem.org/projects/chorem/repository/revisions/356 Log: amelioration du choix de la profondeur pour les categories de budget Modified: trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java Modified: trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java =================================================================== --- trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java 2013-06-29 23:56:49 UTC (rev 355) +++ trunk/chorem-webmotion/src/main/java/org/chorem/webmotion/actions/DashboardAction.java 2013-07-01 10:51:28 UTC (rev 356) @@ -987,12 +987,12 @@ data.add(false, i); } - if (depth != null) { + if (depth != null && depth > 0) { // on supprime les profondeurs non demandees Category lastCategory = null; for (Iterator<WikittyQueryResultTreeNode<Category>> i=data.getCategoriesTree().iterator(); i.hasNext();) { WikittyQueryResultTreeNode<Category> c = i.next(); - if (c.getLevel() <= depth) { + if (c.getLevel() < depth) { lastCategory = c.getUserObject(); } else { i.remove();