Browse Source

fix lambda checks in view

pull/761/head
Dushan Despotovic 3 years ago
parent
commit
03cf7456d7
  1. 2
      app/views/schemes/details.html.erb
  2. 2
      app/views/schemes/new.html.erb

2
app/views/schemes/details.html.erb

@ -69,7 +69,7 @@
mantype_selection,
:id,
lambda { |option|
if option.id == "The same organisation that owns the housing stock" && !current_user.support?
if Scheme::ARRANGEMENT_TYPE[option.id] == "D" && !current_user.support?
"Your organisation"
else
option.name

2
app/views/schemes/new.html.erb

@ -71,7 +71,7 @@
mantype_selection,
:id,
lambda { |option|
if option.id == "The same organisation that owns the housing stock" && !current_user.support?
if Scheme::ARRANGEMENT_TYPE[option.id] == "D" && !current_user.support?
"Your organisation"
else
option.name

Loading…
Cancel
Save