Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix #312

  • Loading branch information...
commit 8f1dd27f6547792fc43f334e907e7768198c2271 1 parent 73fa307
@yandod authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/Controller/ProjectsController.php
View
7 app/Controller/ProjectsController.php
@@ -387,7 +387,12 @@ public function edit() {
$fields = array('name', 'description', 'homepage', 'is_public');
$this->request->data['Tracker']['Tracker'] = array_filter($this->request->data['Project']['Tracker']);
- $this->request->data['CustomField']['CustomField'] = array_filter($this->request->data['Project']['issue_custom_field_ids']);
+ if (
+ isset($this->request->data['Project']['issue_custom_field_ids']) &&
+ is_array($this->request->data['Project']['issue_custom_field_ids'])
+ ) {
+ $this->request->data['CustomField']['CustomField'] = array_filter($this->request->data['Project']['issue_custom_field_ids']);
+ }
if ($this->Project->save($this->request->data, true, $fields)) {
$this->Session->setFlash(__('Successful update.'), 'default', array('class' => 'flash notice'));
$this->redirect(
Please sign in to comment.
Something went wrong with that request. Please try again.