summaryrefslogtreecommitdiffstats
path: root/application/forms/BootmenuEntriesAdd.php
diff options
context:
space:
mode:
authormichael pereira2011-03-08 20:57:39 +0100
committermichael pereira2011-03-08 20:57:39 +0100
commit8f5309d8b3764d463f2a1c5da34eeb59261c2260 (patch)
tree4c9aceb27e40075316ef1124de2071e40e01e404 /application/forms/BootmenuEntriesAdd.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-8f5309d8b3764d463f2a1c5da34eeb59261c2260.tar.gz
pbs2-8f5309d8b3764d463f2a1c5da34eeb59261c2260.tar.xz
pbs2-8f5309d8b3764d463f2a1c5da34eeb59261c2260.zip
BootMenu Order fertig
Diffstat (limited to 'application/forms/BootmenuEntriesAdd.php')
-rw-r--r--application/forms/BootmenuEntriesAdd.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/application/forms/BootmenuEntriesAdd.php b/application/forms/BootmenuEntriesAdd.php
index 93b87f1..9caa90f 100644
--- a/application/forms/BootmenuEntriesAdd.php
+++ b/application/forms/BootmenuEntriesAdd.php
@@ -22,9 +22,11 @@ class Application_Form_BootmenuEntriesAdd extends Zend_Form
$bootosfield = $this->createElement('select','bootosID');
$bootosfield ->setLabel('BootOs:');
- foreach($this->bootoslist as $bootos => $b){
- $bootosfield->addMultiOption($b->getID(), $b->getTitle());
- }
+ if(count($this->bootoslist)>0){
+ foreach($this->bootoslist as $bootos => $b){
+ $bootosfield->addMultiOption($b->getID(), $b->getTitle());
+ }
+ }
$bootosfield->setRegisterInArrayValidator(false);
$this->addElement($bootosfield);
@@ -48,10 +50,10 @@ class Application_Form_BootmenuEntriesAdd extends Zend_Form
));
$orderfield = $this->createElement('select','order');
- $orderfield ->setLabel('Order:');
+ $orderfield ->setLabel('Position:');
for ($i = 0; $i <= $this->maxorder; $i++) {
- $orderfield->addMultiOption($i, $i);
+ $orderfield->addMultiOption($i, $i+1);
}
$orderfield->setRegisterInArrayValidator(false);
$this->addElement($orderfield);