diff --git a/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/input.js b/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/input.js index 46f5d5f..60ba1e9 100644 --- a/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/input.js +++ b/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/input.js @@ -48,7 +48,7 @@ pimcore.object.tags.input = Class.create(pimcore.object.tags.input, { this.component = new Ext.form.TextField(input); - if (this.context.language) { + if (this.context && this.context.language) { this.translateButton = new pimcore.object.elementservice.translateButton( this.object.data.general.o_id, this.fieldConfig.name, diff --git a/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/textarea.js b/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/textarea.js index 45e402a..cadd940 100644 --- a/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/textarea.js +++ b/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/textarea.js @@ -70,7 +70,7 @@ pimcore.object.tags.textarea = Class.create(pimcore.object.tags.abstract, { conf.componentCls = "object_field object_field_type_" + this.type; } - if (this.context.language) { + if (this.context && this.context.language) { this.translateButton = new pimcore.object.elementservice.translateButton( this.object.data.general.o_id, this.fieldConfig.name, diff --git a/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/wysiwyg.js b/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/wysiwyg.js index f6f3247..6fc0d43 100644 --- a/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/wysiwyg.js +++ b/src/DivanteTranslationBundle/Resources/public/js/pimcore/object/tags/wysiwyg.js @@ -29,7 +29,7 @@ pimcore.object.tags.wysiwyg = Class.create(pimcore.object.tags.wysiwyg, { width = this.fieldConfig.width; } - if (this.context.language) { + if (this.context && this.context.language) { this.translateButton = new pimcore.object.elementservice.translateButton( this.object.data.general.o_id, this.fieldConfig.name,