Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Merge branch 'antongorodezkiy-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
zofe committed May 31, 2016
2 parents bcec99b + 40481a0 commit b4c0d49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/DataForm/Field/Checkboxgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ public function getValue()
{
parent::getValue();

$this->values = explode($this->serialization_sep, $this->value);
if (is_array($this->value)) {
$this->values = $this->value;
}
else {
$this->values = explode($this->serialization_sep, $this->value);
}

$description_arr = array();
foreach ($this->options as $value => $description) {
Expand Down
7 changes: 6 additions & 1 deletion src/DataForm/Field/Multiselect.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ public function getValue()
{
parent::getValue();

$this->values = explode($this->serialization_sep, $this->value);
if (is_array($this->value)) {
$this->values = $this->value;
}
else {
$this->values = explode($this->serialization_sep, $this->value);
}

$description_arr = array();
foreach ($this->options as $value => $description) {
Expand Down

0 comments on commit b4c0d49

Please sign in to comment.