My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 18 attachment: files_controller_sort_and_destroy.patch (847 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/files_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/files_controller.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/files_controller.rb (working copy)
@@ -8,7 +8,7 @@
@title = "List of user uploaded files"

if params[:sort] == 'name' then
- sort = "path ASC"
+ sort = "filename ASC"
else
sort = "created_on DESC"
end
@@ -42,7 +42,7 @@
@file.destroy
end
# Render nothing to denote success
- render_text "" and return
+ render :text => "" and return
end

# Uploads files.

Powered by Google Project Hosting