diff --git a/app/controllers/property_hires_controller.rb b/app/controllers/property_hires_controller.rb index a288d05..a51b306 100644 --- a/app/controllers/property_hires_controller.rb +++ b/app/controllers/property_hires_controller.rb @@ -275,14 +275,14 @@ class PropertyHiresController < ApplicationController phire_id = booking_p[:id] end data = check_for_availability(start_time,end_time,booking_p[:property_id], booking_p[:recurring_interval], booking_p[:recurring_end_date], time_setting_id) - if data["success"] == true + if data["success"] == true || is_admin_page error_messages = property.check_require_fields(booking_p) if error_messages.present? data["msg"] = error_messages data["success"] = false end end - if data["success"] == true + if data["success"] == true || is_admin_page hire = nil if phire_id hire = PHire.find(phire_id) rescue nil