We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e87a61 commit 569402aCopy full SHA for 569402a
src/main/java/org/woehlke/simpleworklist/task/TaskServiceImpl.java
@@ -36,7 +36,11 @@ public boolean projectHasNoTasks(Project project) {
36
@Override
37
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
38
public Page<Task> findbyTaskstate(TaskState taskState, Context context, Pageable request) {
39
- return taskRepository.findByTaskStateAndContext(taskState, context, request);
+ if(taskState == TaskState.FOCUS){
40
+ return taskRepository.findByFocusAndContext(true,context,request);
41
+ }else {
42
+ return taskRepository.findByTaskStateAndContext(taskState, context, request);
43
+ }
44
}
45
46
0 commit comments