Merge branch '1.0' into 1.1

This commit is contained in:
Robbie Averill 2019-02-19 11:29:53 +07:00
commit 63c2bc28c7
1 changed files with 13 additions and 3 deletions

View File

@ -205,9 +205,19 @@ class StringTagField extends DropdownField {
$name = $this->getName();
$record->$name = join(',', $this->Value());
$record->write();
}
$record->$name = $this->dataValue();
$record->write();
}
/**
* Ensure that arrays are imploded before being saved
*
* @return mixed|string
*/
public function dataValue()
{
return implode(',', $this->value);
}
/**
* Returns a JSON string of tags, for lazy loading.