Default to automatic availability.
authorJan Schneider <jan@horde.org>
Tue, 24 Nov 2009 22:30:19 +0000 (23:30 +0100)
committerJan Schneider <jan@horde.org>
Tue, 24 Nov 2009 22:33:29 +0000 (23:33 +0100)
kronolith/lib/Forms/CreateResource.php

index 174da2b..3fef8df 100644 (file)
@@ -42,7 +42,8 @@ class Kronolith_CreateResourceForm extends Horde_Form {
 
         $this->addVariable(_("Name"), 'name', 'text', true);
         $this->addVariable(_("Description"), 'description', 'longtext', false, false, null, array(4, 60));
-        $this->addVariable(_("Response type"), 'responsetype', 'enum', true, false, null, array('enum' => $responses));
+        $v = &$this->addVariable(_("Response type"), 'responsetype', 'enum', true, false, null, array('enum' => $responses));
+        $v->setDefault(Kronolith_Resource::RESPONSETYPE_AUTO);
         $this->addVariable(_("Groups"), 'category', 'multienum', false, false, null, array('enum' => $enum));
         $this->setButtons(array(_("Create")));
     }