A free open source IT asset/license management system
Use trim() function when format the custom field values as array
Ivan Nieto Vivancof4947bfa939d
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.phpindex b39650e74b..94adbe7cf0 100644--- a/app/Models/CustomField.php+++ b/app/Models/CustomField.php@@ -306,9 +306,9 @@ class CustomField extends Model$arr_parts = explode('|', $arr[$x]);if ($arr_parts[0] != '') {if (array_key_exists('1', $arr_parts)) {- $result[$arr_parts[0]] = $arr_parts[1];+ $result[$arr_parts[0]] = trim($arr_parts[1]);} else {- $result[$arr_parts[0]] = $arr_parts[0];+ $result[$arr_parts[0]] = trim($arr_parts[0]);}}}