Skip to content
Permalink
Browse files

Allow empty name for selectbox widget.

  • Loading branch information...
ADmad committed Mar 29, 2015
1 parent 01c2c72 commit c86a9aef4a4abdd9d2c163e5ded3a6da648f9935
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/View/Widget/SelectBoxWidget.php
@@ -129,9 +129,6 @@ public function render(array $data, ContextInterface $context)
'val' => null,
];
if (empty($data['name'])) {
throw new \RuntimeException('Cannot make inputs with empty name attributes.');
}
$options = $this->_renderContent($data);
$name = $data['name'];
unset($data['name'], $data['options'], $data['empty'], $data['val'], $data['escape']);

0 comments on commit c86a9ae

Please sign in to comment.
You can’t perform that action at this time.