Permalink
Browse files

Fixing setting the value of select fields

  • Loading branch information...
1 parent b72a184 commit 7f7f3cca1a975f67cc9ce145fdea0b68232f31df @areida areida committed May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/Synapse/Synform/Field/Select.php
@@ -47,7 +47,7 @@ public function option_attributes($value)
public function input()
{
- return Form::select($this->_attributes['name'], $this->_options, $this->_attributes['value'], $this->_attributes);
+ return Form::select($this->_attributes['name'], $this->_options, Arr::get($this->_attributes, 'value'), $this->_attributes);
}
}

0 comments on commit 7f7f3cc

Please sign in to comment.