From 915d72bad55bd729d54885385bb32ae2d27909f3 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 24 Nov 2009 23:30:19 +0100 Subject: [PATCH] Default to automatic availability. --- kronolith/lib/Forms/CreateResource.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"))); } -- 2.11.0