Skip to content

Commit

Permalink
[AddressBundle] follow-up on coreshop#939 - change it on the server a…
Browse files Browse the repository at this point in the history
…s well, so we also display the fallback for other country field types as well
  • Loading branch information
dpfaffenbauer committed Apr 11, 2019
1 parent 271bdf0 commit b58aa22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CoreShop\Component\Address\Model\Country:
getZoneName:
serialized_name: zoneName
groups: [List, Detailed]
getName:
name:
serialized_name: name
exp: 'object.getName() ? object.getName() : object.getIsoCode()'
groups: [List, Detailed]
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ coreshop.country.panel = Class.create(coreshop.resource.panel, {
$super();
},

getGridDisplayColumnRenderer: function (value, metadata, record) {
metadata.tdAttr = 'data-qtip="ID: ' + record.get('id') + '"';

return value ? value : record.get('isoCode');
},

getGridConfiguration: function () {
return {
store: this.store,
Expand Down

0 comments on commit b58aa22

Please sign in to comment.