Index: openacs-4/packages/xotcl-core/tcl/06-param-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/06-param-procs.tcl,v diff -u -r1.24.2.11 -r1.24.2.12 --- openacs-4/packages/xotcl-core/tcl/06-param-procs.tcl 1 Sep 2020 17:56:06 -0000 1.24.2.11 +++ openacs-4/packages/xotcl-core/tcl/06-param-procs.tcl 3 Sep 2020 08:41:41 -0000 1.24.2.12 @@ -165,9 +165,10 @@ parameter proc get_package_id_from_package_key {-package_key:required} { return [ns_cache eval xotcl_package_cache package_id-$package_key { ::xo::dc get_value get_package_id { - select min(package_id) + select package_id from apm_packages where package_key = :package_key + fetch first 1 rows only } } }