When you edit an ad node the default selected options are not displaying. I looked in ad_geoip_ads_country table and the data is there.

Looking at dev render and dev load it appears that $node->geoip_country_format and $node->geoip_country_codes don't exist therefore default_value are not set.

Comments

mikebell_’s picture

On line 232 of ad_geoip.module it's checking for $node->adtype this object doesn't exist.

changed to

if ($node->type == 'ad') {

and works as expected.