diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-24 20:38:39 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-24 20:38:39 -0500 |
commit | 051bf1c9dbb5733242c7657d6d507389206b33ee (patch) | |
tree | 9f1a61fa8558dd572b7c577f51599586e3c48a7e /app/Model/Project.php | |
parent | 60f3d7f83d23014f9cfb7d8494d6cebd2f8b24a3 (diff) |
Add configurable task priority
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index ba0716b0..d0a8bfc8 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -334,6 +334,8 @@ class Project extends Base $values['identifier'] = strtoupper($values['identifier']); } + $this->convertIntegerFields($values, array('priority_default', 'priority_start', 'priority_end')); + if (! $this->db->table(self::TABLE)->save($values)) { $this->db->cancelTransaction(); return false; @@ -400,6 +402,8 @@ class Project extends Base $values['identifier'] = strtoupper($values['identifier']); } + $this->convertIntegerFields($values, array('priority_default', 'priority_start', 'priority_end')); + return $this->exists($values['id']) && $this->db->table(self::TABLE)->eq('id', $values['id'])->save($values); } |