Skip to content

Commit

Permalink
Merge pull request #939 from dpfaffenbauer/issue/937
Browse files Browse the repository at this point in the history
[AddressBundle] use isoCode fallback if there is no language translation
  • Loading branch information
dpfaffenbauer authored Apr 10, 2019
2 parents 246b5c9 + c8650d0 commit 271bdf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CoreShop\Component\Address\Model\Country:
isoCode:
expose: true
type: string
groups: [Detailed]
groups: [List, Detailed]
active:
expose: true
type: boolean
Expand All @@ -36,4 +36,4 @@ CoreShop\Component\Address\Model\Country:
groups: [List, Detailed]
getName:
serialized_name: name
groups: [List, Detailed]
groups: [List, Detailed]
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ 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 271bdf0

Please sign in to comment.