Author: DavidK Date: 2010-02-15 08:22:11 +0100 (Mon, 15 Feb 2010) New Revision: 1726 Modified: trunk/server/elvysCommons/src/elvys/server/bl/categrel/CategoryBLImpl.java trunk/server/elvysCommons/src/elvys/server/bl/layoutrel/LayoutBL.java Log: some changes in layout/category UC's (ordering, styles,..) Modified: trunk/server/elvysCommons/src/elvys/server/bl/categrel/CategoryBLImpl.java =================================================================== --- trunk/server/elvysCommons/src/elvys/server/bl/categrel/CategoryBLImpl.java 2010-02-15 07:21:21 UTC (rev 1725) +++ trunk/server/elvysCommons/src/elvys/server/bl/categrel/CategoryBLImpl.java 2010-02-15 07:22:11 UTC (rev 1726) @@ -754,7 +754,7 @@ " and l.disabled = false " + " and comp.disabled = false" + " and comp.id=:compId " + - "order by cd.created"); + "order by cd.created desc"); query.setInteger("compId", companyId); list = query.list(); } catch (Exception e) { @@ -795,7 +795,7 @@ " and l.disabled = false " + " and comp.disabled = false" + " and l.id=:layoutId " + - "order by cd.created"); + "order by cd.created desc"); query.setInteger("layoutId", layoutId); list = query.list(); } catch (Exception e) { Modified: trunk/server/elvysCommons/src/elvys/server/bl/layoutrel/LayoutBL.java =================================================================== --- trunk/server/elvysCommons/src/elvys/server/bl/layoutrel/LayoutBL.java 2010-02-15 07:21:21 UTC (rev 1725) +++ trunk/server/elvysCommons/src/elvys/server/bl/layoutrel/LayoutBL.java 2010-02-15 07:22:11 UTC (rev 1726) @@ -43,7 +43,7 @@ /** * Gets list of layouts belonging to certain company <br/> * Fetches: Company, User(modif.) - * Orders by: modification date + * Orders by: modification date (newer first) * @param companyId id of company * @param excludedLayoutsIds ids of layouts which will be excluded * @throws ExecuteException