Skip to content

Commit

Permalink
Allow empty name for selectbox widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Mar 29, 2015
1 parent 01c2c72 commit c86a9ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/View/Widget/SelectBoxWidget.php
Expand Up @@ -129,9 +129,6 @@ public function render(array $data, ContextInterface $context)
'val' => null, 'val' => null,
]; ];


if (empty($data['name'])) {
throw new \RuntimeException('Cannot make inputs with empty name attributes.');
}
$options = $this->_renderContent($data); $options = $this->_renderContent($data);
$name = $data['name']; $name = $data['name'];
unset($data['name'], $data['options'], $data['empty'], $data['val'], $data['escape']); unset($data['name'], $data['options'], $data['empty'], $data['val'], $data['escape']);
Expand Down

0 comments on commit c86a9ae

Please sign in to comment.