Remove method Category::getBoardCategories()
This commit is contained in:
@@ -73,38 +73,6 @@ class Category extends Base
|
||||
->findOneColumn('id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare categories to be displayed on the board
|
||||
*
|
||||
* @access public
|
||||
* @param integer $project_id
|
||||
* @return array
|
||||
*/
|
||||
public function getBoardCategories($project_id)
|
||||
{
|
||||
$descriptions = array();
|
||||
|
||||
$listing = array(
|
||||
-1 => t('All categories'),
|
||||
0 => t('No category'),
|
||||
);
|
||||
|
||||
$categories = $this->db->table(self::TABLE)
|
||||
->eq('project_id', $project_id)
|
||||
->asc('name')
|
||||
->findAll();
|
||||
|
||||
foreach ($categories as $category) {
|
||||
$listing[$category['id']] = $category['name'];
|
||||
$descriptions[$category['id']] = $category['description'];
|
||||
}
|
||||
|
||||
return array(
|
||||
$listing,
|
||||
$descriptions,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the list of all categories
|
||||
*
|
||||
|
||||
@@ -100,6 +100,7 @@ class TaskFinder extends Base
|
||||
User::TABLE.'.username AS assignee_username',
|
||||
User::TABLE.'.name AS assignee_name',
|
||||
Category::TABLE.'.name AS category_name',
|
||||
Category::TABLE.'.description AS category_description',
|
||||
Board::TABLE.'.title AS column_name',
|
||||
Project::TABLE.'.name AS project_name'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user