Commit 029869f9 authored by Frank Bergmann's avatar Frank Bergmann

- Fixed issue with multiple calendar instances

parent bc3de3b2
......@@ -32,7 +32,7 @@ ad_proc -private im_package_calendar_id_helper {} {
ad_proc -public package_calendar_id {} {
Returns the package id of the calendar module
} {
return [util_memoize [list db_string cal "select package_id from apm_packages where package_key = 'calendar'" -default 0]]
return [util_memoize [list db_string cal "select min(package_id) from apm_packages where package_key = 'calendar'" -default 0]]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment