Skip to content
Snippets Groups Projects
Commit 65f2955a authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #42 from greezybacon/issue/selection-field-value


Fix keeping selection value in a selection field

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 031509bb 62798159
No related branches found
No related tags found
No related merge requests found
...@@ -708,6 +708,8 @@ class DynamicListItem extends VerySimpleModel { ...@@ -708,6 +708,8 @@ class DynamicListItem extends VerySimpleModel {
} }
class SelectionField extends FormField { class SelectionField extends FormField {
static $widget = 'SelectionWidget';
function getListId() { function getListId() {
list(,$list_id) = explode('-', $this->get('type')); list(,$list_id) = explode('-', $this->get('type'));
return $list_id; return $list_id;
...@@ -719,10 +721,6 @@ class SelectionField extends FormField { ...@@ -719,10 +721,6 @@ class SelectionField extends FormField {
return $this->_list; return $this->_list;
} }
function getWidget() {
return new SelectionWidget($this);
}
function parse($value) { function parse($value) {
return $this->to_php($value); return $this->to_php($value);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment