diff --git a/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm b/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm index a4d35c4eca..9511cc1a38 100644 --- a/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm +++ b/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm @@ -598,6 +598,16 @@ void logPointEvent(MWMRoutePoint * pt, NSString * eventType) auto url = [NSURL URLWithString:data.localAdsURL]; if (!url) return; + + auto const & feature = data.featureId; + [Statistics logEvent:kStatPlacePageOwnershipButtonClick + withParameters:@{ + @"mwm_name" : @(feature.GetMwmName().c_str()), + @"mwm_version" : @(feature.GetMwmVersion()), + @"feature_id" : @(feature.m_index) + } + atLocation:[MWMLocationManager lastLocation]]; + [self.ownerViewController openUrl:url]; } diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm index 535a04adfd..7120406494 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/RegularCell/MWMPlacePageRegularCell.mm @@ -156,18 +156,9 @@ case MetainfoRows::Operator: case MetainfoRows::OpeningHours: case MetainfoRows::Address: - case MetainfoRows::Internet: break; + case MetainfoRows::Internet: case MetainfoRows::LocalAdsCustomer: - case MetainfoRows::LocalAdsCandidate: - auto const & feature = data.featureId; - [Statistics logEvent:kStatPlacePageOwnershipButtonClick - withParameters:@{ - @"mwm_name" : @(feature.GetMwmName().c_str()), - @"mwm_version" : @(feature.GetMwmVersion()), - @"feature_id" : @(feature.m_index) - } - atLocation:[MWMLocationManager lastLocation]]; - break; + case MetainfoRows::LocalAdsCandidate: break; } }