From 97e07661686322054783ee58ee1ee4c510b16e03 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Wed, 3 Dec 2025 21:07:29 +0800 Subject: [PATCH] fix for update --- app/controllers/property_hires_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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