Skip to content

Commit

Permalink
Merge pull request #20 from Chaosmeister/master
Browse files Browse the repository at this point in the history
use comment order
  • Loading branch information
Chaosmeister authored Oct 12, 2023
2 parents 7140bef + 658dac3 commit 9791529
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 9791529

Please sign in to comment.