From: Jan Schneider Date: Tue, 24 Nov 2009 22:30:19 +0000 (+0100) Subject: Default to automatic availability. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=915d72bad55bd729d54885385bb32ae2d27909f3;p=horde.git Default to automatic availability. --- diff --git a/kronolith/lib/Forms/CreateResource.php b/kronolith/lib/Forms/CreateResource.php index 174da2b9c..3fef8dff0 100644 --- a/kronolith/lib/Forms/CreateResource.php +++ b/kronolith/lib/Forms/CreateResource.php @@ -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"))); }