fix: Left off controller changes in the previous commit

pull/2155/head
iglocska 2017-04-27 16:13:00 +02:00
parent 599825c17f
commit d33b3b1434
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,6 @@ class EventsController extends AppController {
} else {
$this->paginate['conditions']['AND'][] = array('Event.publish_timestamp >=' => $v);
}
break;
case 'org' :
if ($v == "") continue 2;
@ -779,6 +778,7 @@ class EventsController extends AppController {
private function __viewUI($event, $continue, $fromEvent) {
$emptyEvent = (!isset($event['Attribute']) || empty($event['Attribute']));
$this->set('emptyEvent', $emptyEvent);
$this->set('attribute_count', isset($event['Attribute']) ? count($event['Attribute']) : 0);
// set the data for the contributors / history field
$org_ids = $this->Event->ShadowAttribute->getEventContributors($event['Event']['id']);
$contributors = $this->Event->Org->find('list', array('fields' => array('Org.name'), 'conditions' => array('Org.id' => $org_ids)));