From 3acd4875f272f40bfaf62a27fdfeaccc1fc35157 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 20 Jun 2014 14:56:55 +0200 Subject: [PATCH] new work packages disabled until proven otherwise. --- .../work_packages/controllers/work-packages-list-controller.js | 1 + app/controllers/api/experimental/work_packages_controller.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/assets/javascripts/angular/work_packages/controllers/work-packages-list-controller.js b/app/assets/javascripts/angular/work_packages/controllers/work-packages-list-controller.js index c3d17f7f6b..8db995fe07 100644 --- a/app/assets/javascripts/angular/work_packages/controllers/work-packages-list-controller.js +++ b/app/assets/javascripts/angular/work_packages/controllers/work-packages-list-controller.js @@ -56,6 +56,7 @@ angular.module('openproject.workPackages.controllers') function initialSetup() { $scope.operatorsAndLabelsByFilterType = OPERATORS_AND_LABELS_BY_FILTER_TYPE; $scope.disableFilters = false; + $scope.disableNewWorkPackage = true; var getWorkPackages, params; if($scope.query_id){ diff --git a/app/controllers/api/experimental/work_packages_controller.rb b/app/controllers/api/experimental/work_packages_controller.rb index b2b4c23704..10d607a528 100644 --- a/app/controllers/api/experimental/work_packages_controller.rb +++ b/app/controllers/api/experimental/work_packages_controller.rb @@ -183,6 +183,7 @@ module Api def work_packages_links links = {} links[:create] = api_experimental_query_path(@project) if User.current.allowed_to?(:add_work_packages, @project) + links end def query_as_json(query, user)