summaryrefslogtreecommitdiff
path: root/protected/controllers/VereinController.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-30 10:18:11 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-30 10:18:11 +0200
commitacec2b5dc35302147f9a9c73d837dce2f3f9958e (patch)
tree2f88a3a657a9211331e1e63e056a089189bd0dd2 /protected/controllers/VereinController.php
parent56593a21209f3ce55fe66d303dbe01b8e081778b (diff)
parent148a216bba21cec1cbe07b60b5191791e0016d6f (diff)
Merge branch 'master' of ssh://proxy.ccwn.org:9044/home/ccwn/git-repos/admin.astaf.de
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
));
}