#1144 Add description field to swimlane.
This commit is contained in:
@@ -40,14 +40,18 @@ class Swimlane extends \Core\Base
|
||||
return $this->swimlane->getDefault($project_id);
|
||||
}
|
||||
|
||||
public function addSwimlane($project_id, $name)
|
||||
public function addSwimlane($project_id, $name, $description = '')
|
||||
{
|
||||
return $this->swimlane->create($project_id, $name);
|
||||
return $this->swimlane->create(array('project_id' => $project_id, 'name' => $name, 'description' => $description));
|
||||
}
|
||||
|
||||
public function updateSwimlane($swimlane_id, $name)
|
||||
public function updateSwimlane($swimlane_id, $name, $description = null)
|
||||
{
|
||||
return $this->swimlane->rename($swimlane_id, $name);
|
||||
$values = array('id' => $swimlane_id, 'name' => $name);
|
||||
if (!is_null($description)) {
|
||||
$values['description'] = $description;
|
||||
}
|
||||
return $this->swimlane->update($values);
|
||||
}
|
||||
|
||||
public function removeSwimlane($project_id, $swimlane_id)
|
||||
|
||||
Reference in New Issue
Block a user