Update _switchmetacodes.html.erb
This commit is contained in:
parent
7150b9fcce
commit
c60e103d97
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<% metacodes = current_user.settings.metacodes %>
|
<% metacodes = current_user.settings.metacodes %>
|
||||||
<% selectedSet = metacodes[0].include?("metacodeset") ? metacodes[0].sub("metacodeset-","") : "custom" %>
|
<% selectedSet = metacodes[0].include?("metacodeset") ? metacodes[0].sub("metacodeset-","") : "custom" %>
|
||||||
<% allMetacodeSets = MetacodeSet.order("name").all %>
|
<% allMetacodeSets = MetacodeSet.order("name").all.to_a %>
|
||||||
<% if selectedSet == "custom"
|
<% if selectedSet == "custom"
|
||||||
index = allMetacodeSets.length
|
index = allMetacodeSets.length
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue