Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing represented_country method on Country object #76

Open
DoubleBB opened this issue May 5, 2020 · 0 comments
Open

Missing represented_country method on Country object #76

DoubleBB opened this issue May 5, 2020 · 0 comments
Labels

Comments

@DoubleBB
Copy link

DoubleBB commented May 5, 2020

$VERSION = '2.006002';

The represented_country method of Country object is missing due to a bug in Country.pm

On line 22 of Country.pm in directory GeoIP2/Model/ :

__PACKAGE__->_define_attributes_for_keys(
    qw( continent country maxmind registered_country traits ));

But it should contain represented_country also:

__PACKAGE__->_define_attributes_for_keys(
    qw( continent country maxmind registered_country traits represented_country));

Fix: add this to the qw() list. I have tried this fix and it works.

@oschwald oschwald added the bug label Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants