Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
git test
Solo
Commits
77b958dd
Commit
77b958dd
authored
8 years ago
by
Liang Ding
Browse files
Options
Download
Email Patches
Plain Diff
🚧
#12256
parent
e9a261fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/b3log/solo/service/CategoryMgmtService.java
+4
-0
...main/java/org/b3log/solo/service/CategoryMgmtService.java
with
4 additions
and
0 deletions
+4
-0
src/main/java/org/b3log/solo/service/CategoryMgmtService.java
+
4
-
0
View file @
77b958dd
...
...
@@ -205,6 +205,10 @@ public class CategoryMgmtService {
@Transactional
public
void
updateCategory
(
final
String
categoryId
,
final
JSONObject
category
)
throws
ServiceException
{
try
{
final
JSONObject
oldCategory
=
categoryRepository
.
get
(
categoryId
);
category
.
put
(
Category
.
CATEGORY_ORDER
,
oldCategory
.
optInt
(
Category
.
CATEGORY_ORDER
));
category
.
put
(
Category
.
CATEGORY_TAG_CNT
,
oldCategory
.
optInt
(
Category
.
CATEGORY_TAG_CNT
));
categoryRepository
.
update
(
categoryId
,
category
);
}
catch
(
final
RepositoryException
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Updates a category [id="
+
categoryId
+
"] failed"
,
e
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment