Skip to content

Commit

Permalink
에디터 컴포넌트 등에서 extravars 항목 중 type이 설정되지 않은 경우에 대한 수정 (#1872)
Browse files Browse the repository at this point in the history
에디터 컴포넌트 등의 설정 xml 에서 type이 설정되지 않은 경우 `text` 가 기본 값.
#1871
  • Loading branch information
misol committed Feb 4, 2022
1 parent 7e82d37 commit 21c1763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/framework/parsers/baseparser.php
Expand Up @@ -82,7 +82,7 @@ protected static function _getExtraVars(\SimpleXMLElement $extra_vars, string $l
$item = new \stdClass;
$item->group = $group_name;
$item->name = trim($var['name']);
$item->type = trim($var['type']);
$item->type = trim($var['type']) ?: 'text';
$item->title = self::_getChildrenByLang($var, 'title', $lang);
$item->description = str_replace('\\n', "\n", self::_getChildrenByLang($var, 'description', $lang));
$item->default = trim($var['default']) ?: null;
Expand Down

0 comments on commit 21c1763

Please sign in to comment.