diff --git a/module/block/view/admin.html.php b/module/block/view/admin.html.php index 869a26e989..ed26f00f6c 100644 --- a/module/block/view/admin.html.php +++ b/module/block/view/admin.html.php @@ -36,7 +36,7 @@ include '../../common/view/chosen.html.php';
- +
diff --git a/module/build/model.php b/module/build/model.php index 3a1a6494f5..3a9fce2470 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -294,7 +294,7 @@ class buildModel extends model $bug->lastEditedBy = $this->app->user->account; $bug->lastEditedDate = $now; $bug->resolution = 'fixed'; - $bug->resolvedBuild = $build->name; + $bug->resolvedBuild = $build->id; $this->dao->update(TABLE_BUG)->data($bug)->where('id')->eq($bug->id)->exec(); $this->action->create('bug', $bug->id, 'Resolved', '', 'fixed', $bug->resolvedBy); } diff --git a/module/testtask/model.php b/module/testtask/model.php index 40eb8089d2..4180091fd5 100644 --- a/module/testtask/model.php +++ b/module/testtask/model.php @@ -286,6 +286,7 @@ class testtaskModel extends model ->leftJoin(TABLE_BUILD)->alias('t3')->on('t1.build = t3.id') ->where('t1.deleted')->eq(0) ->andWhere('t1.owner')->eq($account) + ->andWhere('t2.id')->in($this->app->user->view->projects) ->beginIF($type == 'wait')->andWhere('t1.status')->ne('done')->fi() ->beginIF($type == 'done')->andWhere('t1.status')->eq('done')->fi() ->orderBy($orderBy) diff --git a/module/todo/js/create.js b/module/todo/js/create.js index 1f9e49560c..68b2c551eb 100644 --- a/module/todo/js/create.js +++ b/module/todo/js/create.js @@ -15,11 +15,7 @@ $(function() { $('.cycleConfig').removeClass('hidden'); $('#switchDate').closest('.input-group-addon').addClass('hidden'); - $('#type').find('option').each(function() - { - var type = $(this).val(); - if(type == 'bug' || type == 'task' || type == 'story') $(this).addClass('hidden'); - }) + $('#type').closest('tr').addClass('hidden'); } else { diff --git a/module/todo/model.php b/module/todo/model.php index 4557694b26..4193291371 100644 --- a/module/todo/model.php +++ b/module/todo/model.php @@ -59,6 +59,7 @@ class todoModel extends model $todo->config['month'] = join(',', $todo->config['month']); } $todo->config = json_encode($todo->config); + $todo->type = 'cycle'; } $todo = $this->loadModel('file')->processImgURL($todo, $this->config->todo->editor->create['id'], $this->post->uid);