Bug with adding an event and the org being set incorrectly

pull/217/head
iglocska 2013-06-06 11:01:10 +02:00
parent cb3ac8be15
commit 90dd14808d
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ class EventsController extends AppController {
// force check userid and orgname to be from yourself
$auth = $this->Auth;
$data['Event']['user_id'] = $auth->user('id');
if ($this->checkAction('perm_sync')) $data['Event']['org'] = Configure::read('CyDefSIG.sync');
if ($this->checkAction('perm_sync')) $data['Event']['org'] = Configure::read('CyDefSIG.org');
else $data['Event']['org'] = $auth->user('org');
if (!$fromXml) {
$data['Event']['orgc'] = $data['Event']['org'];