Merge branch '1.1' into 1.2

This commit is contained in:
Robbie Averill 2019-02-19 11:31:32 +07:00
commit 7f0264cc1a

View File

@ -250,10 +250,20 @@ class StringTagField extends DropdownField
$name = $this->getName();
$record->$name = join(',', $this->Value());
$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.
*