Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixing setting the value of select fields
Browse files Browse the repository at this point in the history
  • Loading branch information
areida committed May 17, 2012
1 parent b72a184 commit 7f7f3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Synapse/Synform/Field/Select.php
Expand Up @@ -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.