Skip to content

Commit

Permalink
Fix book selector (#1119)
Browse files Browse the repository at this point in the history
* fix book selector on profile form

* alpha order books
  • Loading branch information
mwvolo authored Aug 8, 2022
1 parent 34c5ccd commit 76f8af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/login_signup_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def generate_sheer_id_url(user:)
end

def book_data
Book.all.pluck(:official_name, :salesforce_name)
Book.all.order("official_name").pluck(:official_name, :salesforce_name)
end
end
2 changes: 1 addition & 1 deletion app/views/educator_signup/_book_selector.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
data-bind="multiselect: selectedBooks, attr: {name: bookSelectorName}"
>
<% if book_data %>
<%= grouped_options_for_select(book_data) %>
<%= options_for_select(book_data) %>
<% end %>
</select>
</div>

0 comments on commit 76f8af5

Please sign in to comment.