We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7140bef + 658dac3 commit 9791529Copy full SHA for 9791529
Controller/CheckboxController.php
@@ -3,6 +3,7 @@
3
namespace Kanboard\Plugin\MarkdownPlus\Controller;
4
5
use Kanboard\Controller\BaseController;
6
+use Kanboard\Model\UserMetadataModel;
7
8
class CheckboxController extends BaseController
9
{
@@ -83,7 +84,9 @@ public function toggle()
83
84
}
85
86
- foreach ($this->commentModel->getAll($taskId) as $comment) {
87
+ $commentSortingDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC');
88
+
89
+ foreach ($this->commentModel->getAll($taskId, $commentSortingDirection) as $comment) {
90
$text = $comment['comment'];
91
92
$result = $this->findCheckBox($text, $number, $foundCheckboxes);
0 commit comments