Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -73,7 +73,7 @@ class _Translatable extends FormAbstract
|
||||
{
|
||||
foreach( \IPS\Db::i()->select( '*', 'core_sys_lang_words', array( 'word_key=?', $this->options['key'] ) )->setKeyField('lang_id') as $k => $v )
|
||||
{
|
||||
$v = $v['word_custom'] ?: $v['word_default'];
|
||||
$v = $v['word_custom'];
|
||||
if ( $v or !isset( $values[ $k ] ) )
|
||||
{
|
||||
if ( \is_array( $this->options['sprintf'] ) )
|
||||
@@ -118,7 +118,8 @@ class _Translatable extends FormAbstract
|
||||
foreach ( \IPS\Lang::getEnabledLanguages() as $lang )
|
||||
{
|
||||
$options = $this->options['editor'];
|
||||
$options['autoSaveKey'] .= $lang->id;
|
||||
$options['autoSaveKey'] .= $lang->id;
|
||||
$options['attachIdsLang'] = $lang->id;
|
||||
$this->editors[ $lang->id ] = new Editor( "{$this->name}[{$lang->id}]", isset( $this->value[ $lang->id ] ) ? $this->value[ $lang->id ] : NULL, $this->required, $options );
|
||||
}
|
||||
}
|
||||
@@ -153,7 +154,7 @@ class _Translatable extends FormAbstract
|
||||
$return = array();
|
||||
foreach ( $this->_getEditors() as $languageId => $editor )
|
||||
{
|
||||
$return[ $languageId ] = $editor->getValue();
|
||||
$return[ $languageId ] = $editor->value;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user