Fixed line break error in JavaScript building area, also added little notice in field area to select field type.

This commit is contained in:
2018-04-11 22:48:37 +02:00
parent e6b2b48ac7
commit 802554e7a9
16 changed files with 166 additions and 161 deletions

View File

@ -9556,7 +9556,7 @@ class Interpretation extends Fields
{
if (ComponentbuilderHelper::typeField($type, 'list') || ComponentbuilderHelper::typeField($type, 'dynamic') || !ComponentbuilderHelper::typeField($type))
{
$optionsArray = explode(PHP_EOL, $options);
$optionsArray = array_map('trim', (array) explode(PHP_EOL, $options));
if (!ComponentbuilderHelper::checkArray($optionsArray))
{
$optionsArray[] = $optionsArray;
@ -9565,7 +9565,7 @@ class Interpretation extends Fields
{
if (strpos($option, '|') !== false)
{
list($option) = explode('|', $option);
list($option) = array_map('trim', (array) explode('|', $option));
}
if ($option != 'dynamic_list')
{
@ -9582,7 +9582,7 @@ class Interpretation extends Fields
{
if (strpos($keywords, ',') !== false)
{
$keywords = explode(',', $keywords);
$keywords = array_map('trim', (array) explode(',', $keywords));
foreach ($keywords as $keyword)
{
$buket['keywords'][] = trim($keyword);