|
|
|
@ -34,7 +34,7 @@ module Validations::SoftValidations
|
|
|
|
|
self.beds.nil? ? nil : [self.beds, 4].min |
|
|
|
|
end |
|
|
|
|
la = if needstype == 2 |
|
|
|
|
defined?(self.location.location_code) ? self.location.location_code : nil |
|
|
|
|
defined?(location.location_code) ? location.location_code : nil |
|
|
|
|
else |
|
|
|
|
self.la |
|
|
|
|
end |
|
|
|
@ -52,7 +52,7 @@ module Validations::SoftValidations
|
|
|
|
|
self.beds.nil? ? nil : [self.beds, 4].min |
|
|
|
|
end |
|
|
|
|
la = if needstype == 2 |
|
|
|
|
defined?(self.location.location_code) ? self.location.location_code : nil |
|
|
|
|
defined?(location.location_code) ? location.location_code : nil |
|
|
|
|
else |
|
|
|
|
self.la |
|
|
|
|
end |
|
|
|
|