distibution

generatePrivate conform new distribution.
pull/63/head
noud 2012-11-28 16:34:36 +01:00
parent 889492629e
commit d2ab860ff2
1 changed files with 6 additions and 4 deletions

View File

@ -413,8 +413,9 @@ class AppController extends Controller {
$attributes = $this->Attribute->find('all',array('recursive' => 0));
foreach ($attributes as $attribute) {
if ($attribute['Attribute']['private']) {
$attribute['Attribute']['private'] = false;
$attribute['Attribute']['pull'] = true;
$attribute['Attribute']['private'] = true;
$attribute['Attribute']['cluster'] = false;
$attribute['Attribute']['communitie'] = false;
}
$this->Attribute->save($attribute);
}
@ -423,8 +424,9 @@ class AppController extends Controller {
$events = $this->Event->find('all',array('recursive' => 0));
foreach ($events as $event) {
if ($event['Event']['private']) {
$event['Event']['private'] = false;
$event['Event']['pull'] = true;
$attribute['Event']['private'] = true;
$attribute['Event']['cluster'] = false;
$attribute['Event']['communitie'] = false;
}
$this->Event->save($event);
}