summaryrefslogtreecommitdiff
path: root/protected/controllers/VereinController.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/controllers/VereinController.php')
-rw-r--r--protected/controllers/VereinController.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/protected/controllers/VereinController.php b/protected/controllers/VereinController.php
index 30c05bc..aa18245 100644
--- a/protected/controllers/VereinController.php
+++ b/protected/controllers/VereinController.php
@@ -65,7 +65,7 @@ class VereinController extends Controller
$this->redirect(array('view','id'=>$model->id));
}
- $standorte = Standort::model()->findAll(array("condition"=>"published=1"));
+ $standorte = Standort::model()->findAll(array("condition"=>"published=1 and type='Stand'"));
$this->render('create',array(
'model'=>$model,
'standorte'=>$standorte
@@ -91,10 +91,12 @@ class VereinController extends Controller
$this->redirect(array('view','id'=>$model->id));
}
- $standorte = Standort::model()->findAll(array("condition"=>"published=1"));
+ $standorte = Standort::model()->findAll(array("condition"=>"published=1 and type='Stand'"));
+ $slugs = User::model()->findAll();
$this->render('update',array(
'model'=>$model,
- 'standorte'=>$standorte
+ 'standorte'=>$standorte,
+ 'slugs'=>$slugs
));
}