summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-18 09:32:20 +0200
committerBjörn Geiger2011-10-18 09:32:20 +0200
commitf45d7ef3ce0a18f363fcc75ce059cb5a58e23977 (patch)
treed25754109843e2ef0514c7305256024927f7c86a /application/views/scripts
parentkleine Korrektur (diff)
downloadpoolctrl-f45d7ef3ce0a18f363fcc75ce059cb5a58e23977.tar.gz
poolctrl-f45d7ef3ce0a18f363fcc75ce059cb5a58e23977.tar.xz
poolctrl-f45d7ef3ce0a18f363fcc75ce059cb5a58e23977.zip
weitere korrektur
Diffstat (limited to 'application/views/scripts')
-rwxr-xr-xapplication/views/scripts/event/add.phtml7
-rwxr-xr-xapplication/views/scripts/event/edit.phtml6
2 files changed, 9 insertions, 4 deletions
diff --git a/application/views/scripts/event/add.phtml b/application/views/scripts/event/add.phtml
index 64fcc32..a84e8b5 100755
--- a/application/views/scripts/event/add.phtml
+++ b/application/views/scripts/event/add.phtml
@@ -1,10 +1,13 @@
<h1>Add Event</h1>
<?php
$this->addForm->setAction($this->url());
-$this->bootoslist = $this->addForm->getBootoslist();
+$this->bootoslist = $this->addForm->getBootoslist();
+$this->configlist = $this->editForm->getConfiglist();
if(isset($this->bootoslist)) {
foreach($this->bootoslist as $bootos) {
- $bootosIDs[] = $bootos->getID();
+ if(array_key_exists($bootos->getID(), $this->configlist)) {
+ $bootosIDs[] = $bootos->getID();
+ }
}
}
echo "<script type=\"text/javascript\">";
diff --git a/application/views/scripts/event/edit.phtml b/application/views/scripts/event/edit.phtml
index b4c89e4..7eb6d61 100755
--- a/application/views/scripts/event/edit.phtml
+++ b/application/views/scripts/event/edit.phtml
@@ -2,12 +2,14 @@
<?php
$this->editForm->setAction($this->url());
$this->bootoslist = $this->editForm->getBootoslist();
+$this->configlist = $this->editForm->getConfiglist();
if(isset($this->bootoslist)) {
foreach($this->bootoslist as $bootos) {
- $bootosIDs[] = $bootos->getID();
+ if(array_key_exists($bootos->getID(), $this->configlist)) {
+ $bootosIDs[] = $bootos->getID();
+ }
}
}
-
echo "<script type=\"text/javascript\">";
$ids = implode(", ", $bootosIDs);
echo "bootosIDs = new Array(" . $ids . ");\n";