yayasoft / ytour

ytour
2 stars 0 forks source link

Empty hotel name when editing existing product #309

Closed suhrab closed 9 years ago

suhrab commented 9 years ago

Providers. Product tab. Edit product. Product name(Hotel name) was empty. Logged with user eshet.

web4social commented 9 years ago

BreezeApiController method Hotels is used to get hotel by id, it checks if hotel agency id and current user agency id are equal. AutoCompleteHotel do not have validation for agency id, grabs all hotels

So we should add a check for agency id in AutoCompleteHotel method. When creating new product, AutoCompleteHotel is used, thats why we have successfully created new product type with user eshet, though eshet's agency does not have Hotels at all @novice3030

novice3030 commented 9 years ago

@web4social you are right it seems that right now agency 26 (eseht) doesn't have hotels in the DB I will fix this now and let you know when it's done

novice3030 commented 9 years ago

@web4social agency 26 now has all hotelligence hotels