Permalink
Browse files

fix #312

  • Loading branch information...
1 parent 73fa307 commit 8f1dd27f6547792fc43f334e907e7768198c2271 @yandod committed Jul 31, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 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(

0 comments on commit 8f1dd27

Please sign in to comment.