GeoIP2-perl icon indicating copy to clipboard operation
GeoIP2-perl copied to clipboard

Missing represented_country method on Country object

Open DoubleBB opened this issue 5 years ago • 0 comments

$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.

DoubleBB avatar May 05 '20 11:05 DoubleBB