Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.tcl 29 Dec 2008 21:53:02 -0000 1.4 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/plugins/OacsFs/popups/file-selector.tcl 27 Oct 2014 16:40:52 -0000 1.5 @@ -4,8 +4,8 @@ @creation-date 13.10.2005 @cvs-id $Id$ } { - {fs_package_id:integer,notnull,optional} - {folder_id:integer,optional} + {fs_package_id:naturalnum,notnull,optional} + {folder_id:naturalnum,optional} {orderby:optional} {selector_type "image"} {file_types "*"} @@ -196,7 +196,7 @@ } } -set order_by_clause [expr {[exists_and_not_null orderby] ? +set order_by_clause [expr {([info exists orderby] && $orderby ne "") ? [template::list::orderby_clause -orderby -name contents] : " order by fs_objects.sort_key, fs_objects.name asc"}]