summaryrefslogtreecommitdiff
path: root/app/Controller/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Config.php')
-rw-r--r--app/Controller/Config.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/app/Controller/Config.php b/app/Controller/Config.php
index bee897be..bb6e860a 100644
--- a/app/Controller/Config.php
+++ b/app/Controller/Config.php
@@ -41,7 +41,10 @@ class Config extends Base
$values = $this->request->getValues();
if ($redirect === 'board') {
- $values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0);
+ $values += array('subtask_restriction' => 0, 'subtask_time_tracking' => 0, 'subtask_forecast' => 0);
+ }
+ else if ($redirect === 'integrations') {
+ $values += array('integration_slack_webhook' => 0, 'integration_hipchat' => 0);
}
if ($this->config->save($values)) {
@@ -102,6 +105,20 @@ class Config extends Base
}
/**
+ * Display the integration settings page
+ *
+ * @access public
+ */
+ public function integrations()
+ {
+ $this->common('integrations');
+
+ $this->response->html($this->layout('config/integrations', array(
+ 'title' => t('Settings').' > '.t('Integrations'),
+ )));
+ }
+
+ /**
* Display the webhook settings page
*
* @access public