From 24555eb480ff0f9cbac59c6c1a9e28bd9d2637c4 Mon Sep 17 00:00:00 2001 From: Aleksey Belouosv Date: Wed, 6 Mar 2019 16:39:25 +0300 Subject: [PATCH] [iOS] set default check in/out dates in hotel filter https://jira.mail.ru/browse/MAPSME-9920 --- .../Filters/MWMSearchHotelsFilterViewController.mm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm b/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm index e8119b56dd..7b9aebcdfa 100644 --- a/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm +++ b/iphone/Maps/UI/Search/Filters/MWMSearchHotelsFilterViewController.mm @@ -115,9 +115,12 @@ void configButton(UIButton * button, NSString * primaryText, NSString * secondar { m_selectedTypes = params.types; [self.type.collectionView reloadData]; - - self.checkInDate = params.checkInDate; - self.checkOutDate = params.checkOutDate; + + if (params.checkInDate != nil && params.checkOutDate != nil) + { + self.checkInDate = params.checkInDate; + self.checkOutDate = params.checkOutDate; + } using namespace place_page::rating; auto ratingCell = self.rating;