summaryrefslogtreecommitdiff
path: root/app/Model/Board.php
diff options
context:
space:
mode:
authorashbike <helloashbike@gmail.com>2015-02-09 21:30:08 +0530
committerFrederic Guillot <fred@kanboard.net>2015-02-09 21:14:53 -0500
commit77a307e4ff8cfb4afcd34990b147f0ad38dfc558 (patch)
tree8d975fdece45597c8d8ad6bdd5ceea80c14ca842 /app/Model/Board.php
parent6fbcbfb001bbd972f2f958d591f4586d2a2ea468 (diff)
- Markdown supported in column description.
- Project > Edit Board and Project Summary pages now show description as tooltip. - Project > Edit Board shows textarea with markdown preview. Edit column also shows markdown preview. - Fixed bug while adding a new column inserts description as column limit.
Diffstat (limited to 'app/Model/Board.php')
-rw-r--r--app/Model/Board.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/Board.php b/app/Model/Board.php
index 2b07ca46..8a344f7f 100644
--- a/app/Model/Board.php
+++ b/app/Model/Board.php
@@ -118,7 +118,7 @@ class Board extends Base
$values = array(
'project_id' => $project_id,
'title' => $title,
- 'task_limit' => $task_limit,
+ 'task_limit' => intval($task_limit),
'position' => $this->getLastColumnPosition($project_id) + 1,
'description' => $description,
);
@@ -140,7 +140,7 @@ class Board extends Base
{
return $this->db->table(self::TABLE)->eq('id', $column_id)->update(array(
'title' => $title,
- 'task_limit' => $task_limit,
+ 'task_limit' => intval($task_limit),
'description' => $description,
));
}