Copy pasta fail

pull/762/head
Iglocska 2015-08-03 15:49:16 +02:00
parent 7cc3a9a6d9
commit 3fb4c1f52d
1 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ class AttributesController extends AppController {
$sgs = $this->SharingGroup->fetchAllAuthorised($this->Auth->user(), 'name', 1);
$this->set('sharingGroups', $sgs);
$distributionLevels = $this->Event->distributionLevels;
$distributionLevels = $this->Attribute->distributionLevels;
if (empty($sgs)) unset ($distributionLevels[4]);
$this->set('distributionLevels', $distributionLevels);
@ -784,7 +784,7 @@ class AttributesController extends AppController {
$sgs = $this->SharingGroup->fetchAllAuthorised($this->Auth->user(), 'name', 1);
$this->set('sharingGroups', $sgs);
$distributionLevels = $this->Event->distributionLevels;
$distributionLevels = $this->Attribute->distributionLevels;
if (empty($sgs)) unset ($distributionLevels[4]);
$this->set('distributionLevels', $distributionLevels);