Skip to content
Snippets Groups Projects
Commit a88e3fc1 authored by Peter Rotich's avatar Peter Rotich
Browse files

Upgrader Fix: make it play nice with queue export

parent 0bfe261d
No related branches found
No related tags found
No related merge requests found
......@@ -1094,7 +1094,12 @@ class CustomQueue extends VerySimpleModel {
return 0 === count($errors);
}
function psave() {
return parent::save();
}
function save($refetch=false) {
$nopath = !isset($this->path);
$path_changed = isset($this->dirty['parent_id']);
......@@ -1166,7 +1171,7 @@ class CustomQueue extends VerySimpleModel {
static function __create($vars) {
$q = static::create($vars);
$q->save();
$q->psave();
foreach ($vars['columns'] as $info) {
$glue = new QueueColumnGlue($info);
$glue->queue_id = $q->getId();
......
......@@ -30,7 +30,7 @@ class QueueSortCreator extends MigrationTask {
foreach ($open->getChildren() as $q) {
$q->flags |= CustomQueue::FLAG_INHERIT_SORTING;
$q->save();
$q->psave();
}
// Set default queue to 'open'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment