@@ -82,6 +82,7 @@ public final String projectTaskAddGet(
82
82
model .addAttribute ("breadcrumb" , breadcrumb );
83
83
model .addAttribute ("task" , task );
84
84
model .addAttribute ("userSession" , userSession );
85
+ model .addAttribute ("dataPage" , true );
85
86
return "project/id/task/add" ;
86
87
}
87
88
@@ -95,6 +96,7 @@ public final String projectTaskAddPost(
95
96
) {
96
97
Context context = super .getContext (userSession );
97
98
UserAccount userAccount = context .getUserAccount ();
99
+ model .addAttribute ("dataPage" , true );
98
100
if (result .hasErrors ()) {
99
101
for (ObjectError e : result .getAllErrors ()) {
100
102
log .info (e .toString ());
@@ -166,6 +168,7 @@ public final String project(
166
168
model .addAttribute ("isDeleted" ,isDeleted );
167
169
}
168
170
model .addAttribute ("userSession" , userSession );
171
+ model .addAttribute ("dataPage" , true );
169
172
return "project/id/show" ;
170
173
}
171
174
@@ -179,6 +182,7 @@ public final String projectAddProjectGet(
179
182
Context context = super .getContext (userSession );
180
183
projectControllerService .addNewProjectToProjectIdForm (projectId , userSession , context , locale , model );
181
184
model .addAttribute ("userSession" , userSession );
185
+ model .addAttribute ("dataPage" , true );
182
186
return "project/id/project/add" ;
183
187
}
184
188
@@ -215,6 +219,7 @@ public final String projectMoveToProjectGet(
215
219
Project targetProject = projectService .findByProjectId (targetProjectId );
216
220
thisProject = projectService .moveProjectToAnotherProject (thisProject , targetProject );
217
221
model .addAttribute ("userSession" , userSession );
222
+ model .addAttribute ("dataPage" , true );
218
223
return thisProject .getUrl ();
219
224
}
220
225
@@ -235,6 +240,7 @@ public final String projectEditGet(
235
240
model .addAttribute ("thisProject" , thisProject );
236
241
model .addAttribute ("project" , thisProject );
237
242
model .addAttribute ("userSession" , userSession );
243
+ model .addAttribute ("dataPage" , true );
238
244
return "project/id/edit" ;
239
245
}
240
246
@@ -249,6 +255,7 @@ public final String projectEditPost(
249
255
Context context = super .getContext (userSession );
250
256
UserAccount thisUser = context .getUserAccount ();
251
257
Project thisProject ;
258
+ model .addAttribute ("dataPage" , true );
252
259
if (result .hasErrors ()) {
253
260
for (ObjectError e : result .getAllErrors ()) {
254
261
log .info (e .toString ());
@@ -327,6 +334,7 @@ public final String projectDeleteGet(
327
334
model .addAttribute ("breadcrumb" , breadcrumb );
328
335
model .addAttribute ("thisProject" , project );
329
336
model .addAttribute ("userSession" , userSession );
337
+ model .addAttribute ("dataPage" , true );
330
338
return "project/id/show" ;
331
339
}
332
340
}
@@ -352,6 +360,7 @@ public String moveTaskToTaskAndChangeTaskOrderInProject(
352
360
log .info (" DONE: taskMoveService.moveOrderIdProject" );
353
361
log .info ("-------------------------------------------------" );
354
362
model .addAttribute ("userSession" , userSession );
363
+ model .addAttribute ("dataPage" , true );
355
364
return thisProject .getUrl ();
356
365
}
357
366
@@ -365,6 +374,7 @@ public final String moveAllCompletedToTrash(
365
374
Context context = super .getContext (userSession );
366
375
taskService .moveAllCompletedToTrash (context );
367
376
model .addAttribute ("userSession" , userSession );
377
+ model .addAttribute ("dataPage" , true );
368
378
return thisProject .getUrl ();
369
379
}
370
380
@@ -378,6 +388,7 @@ public final String emptyTrash(
378
388
Context context = super .getContext (userSession );
379
389
taskService .emptyTrash (context );
380
390
model .addAttribute ("userSession" , userSession );
391
+ model .addAttribute ("dataPage" , true );
381
392
return thisProject .getUrl ();
382
393
}
383
394
@@ -400,6 +411,7 @@ public final String editTaskGet(
400
411
model .addAttribute ("task" , task );
401
412
model .addAttribute ("contexts" , contexts );
402
413
model .addAttribute ("userSession" , userSession );
414
+ model .addAttribute ("dataPage" , true );
403
415
return "project/id/task/edit" ;
404
416
}
405
417
@@ -414,6 +426,7 @@ public final String editTaskPost(
414
426
Model model
415
427
) {
416
428
log .info ("editTaskPost" );
429
+ model .addAttribute ("dataPage" , true );
417
430
if (task .getTaskState ()==TaskState .SCHEDULED && task .getDueDate ()==null ){
418
431
String objectName ="task" ;
419
432
String field ="dueDate" ;
@@ -473,6 +486,7 @@ public final String setDoneTaskGet(
473
486
task .setOrderIdTaskState (++maxOrderIdTaskState );
474
487
task = taskService .updatedViaTaskstate (task );
475
488
model .addAttribute ("userSession" , userSession );
489
+ model .addAttribute ("dataPage" , true );
476
490
return thisProject .getUrl ();
477
491
}
478
492
@@ -489,6 +503,7 @@ public final String unsetDoneTaskGet(
489
503
task .setOrderIdTaskState (++maxOrderIdTaskState );
490
504
task = taskService .updatedViaTaskstate (task );
491
505
model .addAttribute ("userSession" , userSession );
506
+ model .addAttribute ("dataPage" , true );
492
507
return thisProject .getUrl ();
493
508
}
494
509
@@ -503,6 +518,7 @@ public final String setFocusGet(
503
518
task .setFocus ();
504
519
task = taskService .updatedViaTaskstate (task );
505
520
model .addAttribute ("userSession" , userSession );
521
+ model .addAttribute ("dataPage" , true );
506
522
return thisProject .getUrl ();
507
523
}
508
524
@@ -517,6 +533,7 @@ public final String unsetFocusGet(
517
533
task .unsetFocus ();
518
534
task = taskService .updatedViaTaskstate (task );
519
535
model .addAttribute ("userSession" , userSession );
536
+ model .addAttribute ("dataPage" , true );
520
537
return thisProject .getUrl ();
521
538
}
522
539
@@ -529,6 +546,7 @@ public final String moveTaskToAnotherProject(
529
546
) {
530
547
task = taskService .moveTaskToRootProject (task );
531
548
model .addAttribute ("userSession" , userSession );
549
+ model .addAttribute ("dataPage" , true );
532
550
return "redirect:/project/root" ;
533
551
}
534
552
@@ -542,6 +560,7 @@ public final String moveTaskToAnotherProject(
542
560
) {
543
561
task = taskService .moveTaskToAnotherProject (task ,otherProject );
544
562
model .addAttribute ("userSession" , userSession );
563
+ model .addAttribute ("dataPage" , true );
545
564
return otherProject .getUrl ();
546
565
}
547
566
@@ -556,6 +575,7 @@ public final String moveTaskToInbox(
556
575
task .moveToInbox ();
557
576
taskService .updatedViaTaskstate (task );
558
577
model .addAttribute ("userSession" , userSession );
578
+ model .addAttribute ("dataPage" , true );
559
579
return thisProject .getUrl ();
560
580
}
561
581
@@ -570,6 +590,7 @@ public final String moveTaskToToday(
570
590
task .moveToToday ();
571
591
taskService .updatedViaTaskstate (task );
572
592
model .addAttribute ("userSession" , userSession );
593
+ model .addAttribute ("dataPage" , true );
573
594
return thisProject .getUrl ();
574
595
}
575
596
@@ -584,6 +605,7 @@ public final String moveTaskToNext(
584
605
task .moveToNext ();
585
606
taskService .updatedViaTaskstate (task );
586
607
model .addAttribute ("userSession" , userSession );
608
+ model .addAttribute ("dataPage" , true );
587
609
return thisProject .getUrl ();
588
610
}
589
611
@@ -598,6 +620,7 @@ public final String moveTaskToWaiting(
598
620
task .moveToWaiting ();
599
621
taskService .updatedViaTaskstate (task );
600
622
model .addAttribute ("userSession" , userSession );
623
+ model .addAttribute ("dataPage" , true );
601
624
return thisProject .getUrl ();
602
625
}
603
626
@@ -612,6 +635,7 @@ public final String moveTaskToSomeday(
612
635
task .moveToSomeday ();
613
636
taskService .updatedViaTaskstate (task );
614
637
model .addAttribute ("userSession" , userSession );
638
+ model .addAttribute ("dataPage" , true );
615
639
return thisProject .getUrl ();
616
640
}
617
641
@@ -626,6 +650,7 @@ public final String moveTaskToFocus(
626
650
task .moveToFocus ();
627
651
taskService .updatedViaTaskstate (task );
628
652
model .addAttribute ("userSession" , userSession );
653
+ model .addAttribute ("dataPage" , true );
629
654
return thisProject .getUrl ();
630
655
}
631
656
@@ -640,6 +665,7 @@ public final String moveTaskToCompleted(
640
665
task .moveToCompletedTasks ();
641
666
taskService .updatedViaTaskstate (task );
642
667
model .addAttribute ("userSession" , userSession );
668
+ model .addAttribute ("dataPage" , true );
643
669
return thisProject .getUrl ();
644
670
}
645
671
@@ -657,6 +683,7 @@ public final String moveTaskToTrash(
657
683
userSession .setLastTaskState (task .getTaskState ());
658
684
userSession .setLastTaskId (task .getId ());
659
685
model .addAttribute ("userSession" , userSession );
686
+ model .addAttribute ("dataPage" , true );
660
687
return thisProject .getUrl ();
661
688
}
662
689
@@ -671,6 +698,7 @@ public final String transformTaskIntoProjectGet(
671
698
userSession .setLastProjectId (thisProject .getId ());
672
699
userSession .setLastTaskState (task .getTaskState ());
673
700
userSession .setLastTaskId (task .getId ());
701
+ model .addAttribute ("dataPage" , true );
674
702
return transformTaskIntoProjektService .transformTaskIntoProjectGet (task , userSession , model );
675
703
}
676
704
}
0 commit comments