We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90e91d6 commit 658dac3Copy full SHA for 658dac3
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