added small fix
This commit is contained in:
parent
92f1fd6188
commit
1f9a6fe8ca
|
@ -26,7 +26,7 @@ class SiteRequest
|
||||||
belongs_to :c_panel_user
|
belongs_to :c_panel_user
|
||||||
|
|
||||||
def get_site
|
def get_site
|
||||||
self.site_id == "newsite" ? nil : RegisteredSite.find(self.site_id)
|
self.site_id == "newsite" ? nil : (RegisteredSite.find(self.site_id) rescue nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_request_type
|
def get_request_type
|
||||||
|
|
Loading…
Reference in New Issue