fix kb order

This commit is contained in:
yuri
2016-07-27 10:56:20 +03:00
parent 937aab2b1c
commit 66f686c013
6 changed files with 21 additions and 8 deletions
@@ -49,6 +49,7 @@ class KnowledgeBaseArticle extends \Espo\Core\Controllers\Record
$where = null;
if (!empty($data['where'])) {
$where = $data['where'];
$where = json_decode(json_encode($where), true);
}
$this->getRecordService()->moveUp($data['id'], $where);
@@ -64,6 +65,7 @@ class KnowledgeBaseArticle extends \Espo\Core\Controllers\Record
$where = null;
if (!empty($data['where'])) {
$where = $data['where'];
$where = json_decode(json_encode($where), true);
}
$this->getRecordService()->moveDown($data['id'], $where);