Skip to content

Commit 5195161

Browse files
luigifabfballiano
authored andcommitted
Fix data.title replace when it's null/undefined (#2719)
1 parent ab62878 commit 5195161

File tree

1 file changed

+2
-2
lines changed
  • app/design/adminhtml/default/default/template/bundle/product/edit/bundle

1 file changed

+2
-2
lines changed

app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ Bundle.Option.prototype = {
9191
},
9292

9393
add : function(data) {
94-
if(!data){
94+
if (!data) {
9595
data = {};
9696
this.top = $('product_bundle_container_top');
97-
} else {
97+
} else if (data.title) {
9898
data.title = data.title.replace('"', """);
9999
}
100100

0 commit comments

Comments
 (0)