manually set position

This commit is contained in:
Athou
2013-06-04 10:11:16 +02:00
parent dade3c4d08
commit 075c3b6b61
6 changed files with 19 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ public class FeedSubscriptionService {
newSubscription = true;
}
sub.setCategory(category);
sub.setPosition(0);
sub.setTitle(FeedUtils.truncate(title, 128));
feedSubscriptionDAO.saveOrUpdate(sub);

View File

@@ -201,6 +201,7 @@ public class CategoryREST extends AbstractResourceREST {
FeedCategory cat = new FeedCategory();
cat.setName(req.getName());
cat.setUser(getUser());
cat.setPosition(0);
String parentId = req.getParentId();
if (parentId != null && !ALL.equals(parentId)) {
FeedCategory parent = new FeedCategory();