mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Merge branch 'develop' of https://github.com/snipe/snipe-it into develop
This commit is contained in:
commit
1f142fde8a
|
@ -285,6 +285,7 @@ class CustomField extends Model
|
||||||
*/
|
*/
|
||||||
public function formatFieldValuesAsArray()
|
public function formatFieldValuesAsArray()
|
||||||
{
|
{
|
||||||
|
$result = [];
|
||||||
$arr = preg_split("/\\r\\n|\\r|\\n/", $this->field_values);
|
$arr = preg_split("/\\r\\n|\\r|\\n/", $this->field_values);
|
||||||
|
|
||||||
if (($this->element!='checkbox') && ($this->element!='radio')) {
|
if (($this->element!='checkbox') && ($this->element!='radio')) {
|
||||||
|
|
Loading…
Reference in a new issue