Skip to content

Commit

Permalink
use comment order
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosmeister committed Oct 12, 2023
1 parent 90e91d6 commit 658dac3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Controller/CheckboxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Kanboard\Plugin\MarkdownPlus\Controller;

use Kanboard\Controller\BaseController;
use Kanboard\Model\UserMetadataModel;

class CheckboxController extends BaseController
{
Expand Down Expand Up @@ -83,7 +84,9 @@ public function toggle()
}
}

foreach ($this->commentModel->getAll($taskId) as $comment) {
$commentSortingDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC');

foreach ($this->commentModel->getAll($taskId, $commentSortingDirection) as $comment) {
$text = $comment['comment'];

$result = $this->findCheckBox($text, $number, $foundCheckboxes);
Expand Down

0 comments on commit 658dac3

Please sign in to comment.