Skip to content

Commit

Permalink
Fixed bugs in administrator panel (bigbluebutton#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Mar 20, 2020
1 parent 4cc45ab commit 03cdbd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/models/room.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def self.admins_order(column, direction)
# Include the owner of the table
table = joins(:owner)

return table.order(Arel.sql("rooms.#{column} #{direction}")) if table.column_names.include?(column) || column == "users.name"
return table.order(Arel.sql("rooms.#{column} #{direction}")) if table.column_names.include?(column)

return table.order(Arel.sql("#{column} #{direction}")) if column == "users.name"

table
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/admins/components/_server_room_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<%= button_to start_room_path(room), class: "dropdown-item", "data-disable": "" do %>
<i class="dropdown-icon fas fa-door-open"></i> <%= running ? t("room.join") : t("room.start") %>
<% end %>
<a href="" data-toggle="modal" data-target="#createRoomModal" class="update-room dropdown-item">
<a href="" data-toggle="modal" data-target="#createRoomModal" class="update-room dropdown-item" data-settings-path="<%= room_settings_path(room) %>">
<i class="dropdown-icon fas fa-cog"></i> <%= t("room.settings") %>
</a>
<% if shared_access_allowed %>
Expand Down

0 comments on commit 03cdbd6

Please sign in to comment.