Skip to content

Commit

Permalink
Merge pull request #22 from iibs/check-context
Browse files Browse the repository at this point in the history
add check for context
  • Loading branch information
Kuba Płaskonka authored Sep 3, 2021
2 parents 3794987 + 051433d commit 7fda5d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7fda5d6

Please sign in to comment.