diff --git a/src/CoreShop/Bundle/AddressBundle/Resources/config/serializer/Model.Country.yml b/src/CoreShop/Bundle/AddressBundle/Resources/config/serializer/Model.Country.yml index d1291d90ea..d10d22ba2b 100755 --- a/src/CoreShop/Bundle/AddressBundle/Resources/config/serializer/Model.Country.yml +++ b/src/CoreShop/Bundle/AddressBundle/Resources/config/serializer/Model.Country.yml @@ -9,7 +9,7 @@ CoreShop\Component\Address\Model\Country: isoCode: expose: true type: string - groups: [Detailed] + groups: [List, Detailed] active: expose: true type: boolean @@ -36,4 +36,4 @@ CoreShop\Component\Address\Model\Country: groups: [List, Detailed] getName: serialized_name: name - groups: [List, Detailed] \ No newline at end of file + groups: [List, Detailed] diff --git a/src/CoreShop/Bundle/AddressBundle/Resources/public/pimcore/js/country/panel.js b/src/CoreShop/Bundle/AddressBundle/Resources/public/pimcore/js/country/panel.js index 9fda27224a..67d5941924 100644 --- a/src/CoreShop/Bundle/AddressBundle/Resources/public/pimcore/js/country/panel.js +++ b/src/CoreShop/Bundle/AddressBundle/Resources/public/pimcore/js/country/panel.js @@ -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,