mirror of https://github.com/halo-dev/halo
Fixed CategoryTagDirective.
parent
2233dc8d12
commit
1a3fb94151
|
@ -15,7 +15,7 @@ import javax.servlet.http.HttpServletResponse;
|
|||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Admin page.
|
||||
* Main controller.
|
||||
*
|
||||
* @author ryanwang
|
||||
* @date : 2019-04-23
|
||||
|
|
|
@ -45,6 +45,7 @@ public class CategoryTagDirective implements TemplateDirectiveModel {
|
|||
case "listByPostId":
|
||||
Integer postId = Integer.parseInt(params.get("postId").toString());
|
||||
env.setVariable("categories", builder.build().wrap(postCategoryService.listCategoryBy(postId)));
|
||||
break;
|
||||
case "count":
|
||||
env.setVariable("count", builder.build().wrap(categoryService.count()));
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue