Skip to content

Commit

Permalink
Fixed #2602
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 21, 2018
1 parent 28c2659 commit e9da0ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
- Fixed a bug where some Control Panel messages were not getting translated. ([#2583](https://github.com/craftcms/cms/issues/2583))
- Fixed a bug where Color fields’ color previews weren’t showing the selected color in element indexes and entry versions. ([#2587](https://github.com/craftcms/cms/issues/2587))
- Fixed a bug where datepickers weren’t visible in Live Preview. ([#2591](https://github.com/craftcms/cms/issues/2591))
- Fixed a bug where fields’ Translation Method settings weren’t listing “Translate for each site group” as an option after changing the field type, until the field was saved and re-edited. ([#2602](https://github.com/craftcms/cms/issues/2602))

## 3.0.0-RC15 - 2018-03-13

Expand Down
3 changes: 2 additions & 1 deletion src/templates/settings/fields/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@
// Rebuild the options based on the field type's supported translation methods
$container.find('select').html(
($.inArray('none', Craft.supportedTranslationMethods[type]) != -1 ? '<option value="none">{{ "Not translatable"|t('app')|e('js') }}</option>' : '') +
($.inArray('language', Craft.supportedTranslationMethods[type]) != -1 ? '<option value="language">{{ "Translate for each language"|t('app')|e('js') }}</option>' : '') +
($.inArray('site', Craft.supportedTranslationMethods[type]) != -1 ? '<option value="site">{{ "Translate for each site"|t('app')|e('js') }}</option>' : '') +
($.inArray('siteGroup', Craft.supportedTranslationMethods[type]) != -1 ? '<option value="site">{{ "Translate for each site group"|t('app')|e('js') }}</option>' : '') +
($.inArray('language', Craft.supportedTranslationMethods[type]) != -1 ? '<option value="language">{{ "Translate for each language"|t('app')|e('js') }}</option>' : '') +
($.inArray('custom', Craft.supportedTranslationMethods[type]) != -1 ? '<option value="custom">{{ "Custom…"|t('app')|e('js') }}</option>' : '')
);
}
Expand Down

0 comments on commit e9da0ed

Please sign in to comment.