Skip to content

Commit

Permalink
Don't make attribute description a required field.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 17, 2015
1 parent b2094a0 commit 4e6629d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion whups/lib/Form/Admin/AddAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(&$vars)
$this->addHidden('', 'type', 'int', true, true);
$this->addVariable(_("Attribute Name"), 'attribute_name', 'text', true);
$this->addVariable(
_("Attribute Description"), 'attribute_description', 'text', true);
_("Attribute Description"), 'attribute_description', 'text', false);
$this->addVariable(
_("Required Attribute?"), 'attribute_required', 'boolean', false);

Expand Down
2 changes: 1 addition & 1 deletion whups/lib/Form/Admin/EditAttributeStepTwo.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(&$vars)
_("Attribute Name"), 'attribute_name', 'text', true);
$pname->setDefault($info['name']);
$pdesc = &$this->addVariable(
_("Attribute Description"), 'attribute_description', 'text', true);
_("Attribute Description"), 'attribute_description', 'text', false);
$pdesc->setDefault($info['description']);
$preq = &$this->addVariable(
_("Required Attribute?"), 'attribute_required', 'boolean', false);
Expand Down

0 comments on commit 4e6629d

Please sign in to comment.