diff --git a/app/controllers/property_hires_controller.rb b/app/controllers/property_hires_controller.rb
index cf69536..60dba3f 100644
--- a/app/controllers/property_hires_controller.rb
+++ b/app/controllers/property_hires_controller.rb
@@ -69,7 +69,7 @@ class PropertyHiresController < ApplicationController
"value" => property.note
}
end
- if !property_hire.property_number.blank?
+ if !property.property_number.blank?
data << {
"header" => t("property_hire.property_number"),
"value" => property.property_number
@@ -79,7 +79,7 @@ class PropertyHiresController < ApplicationController
"header" => t("property_hire.can_be_hired"),
"value" => (property.can_be_hired ? "Yes" : "No")
}
- if !property_hire.purchase_date.to_s.blank?
+ if !property.purchase_date.to_s.blank?
data << {
"header" => t("property_hire.purchase_date"),
"value" => property.purchase_date.strftime("%Y-%m-%d")