forked from External/greenlight
		
	Fixed bugs in administrator panel (#1047)
This commit is contained in:
		| @@ -49,7 +49,9 @@ class Room < ApplicationRecord | ||||
|     # 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 | ||||
|   | ||||
| @@ -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 %> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user