summaryrefslogtreecommitdiff
path: root/app/Decorator/ColumnMoveRestrictionCacheDecorator.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-11 18:32:47 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-11 18:32:47 -0400
commitc84df535b6bdc7260144872fc4e0c241a5a5ad61 (patch)
treed0e1dfe683fc338298f64e67e69cbbb26455e08c /app/Decorator/ColumnMoveRestrictionCacheDecorator.php
parentd8f6d8568396816a6bfaca1e01211384e803cf91 (diff)
Improve column restrictions
Diffstat (limited to 'app/Decorator/ColumnMoveRestrictionCacheDecorator.php')
-rw-r--r--app/Decorator/ColumnMoveRestrictionCacheDecorator.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Decorator/ColumnMoveRestrictionCacheDecorator.php b/app/Decorator/ColumnMoveRestrictionCacheDecorator.php
index cb5e860c..2a3e9c2a 100644
--- a/app/Decorator/ColumnMoveRestrictionCacheDecorator.php
+++ b/app/Decorator/ColumnMoveRestrictionCacheDecorator.php
@@ -38,17 +38,18 @@ class ColumnMoveRestrictionCacheDecorator
}
/**
- * Proxy method to get column Ids
+ * Proxy method to get sortable columns
+ *
* @param int $project_id
* @return array|mixed
*/
- public function getAllSrcColumns($project_id, $role)
+ public function getSortableColumns($project_id, $role)
{
$key = $this->cachePrefix.$project_id.$role;
$columnIds = $this->cache->get($key);
if ($columnIds === null) {
- $columnIds = $this->columnMoveRestrictionModel->getAllSrcColumns($project_id, $role);
+ $columnIds = $this->columnMoveRestrictionModel->getSortableColumns($project_id, $role);
$this->cache->set($key, $columnIds);
}