Index: openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl,v diff -u -r1.15.2.1 -r1.15.2.2 --- openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl 10 Sep 2015 08:30:17 -0000 1.15.2.1 +++ openacs-4/packages/calendar-portlet/www/calendar-list-portlet.tcl 27 Jan 2017 09:32:57 -0000 1.15.2.2 @@ -25,7 +25,7 @@ {page_num:naturalnum ""} {date ""} {julian_date ""} - {period_days:optional} + {period_days:integer,optional ""} {sort_by ""} } -properties { @@ -55,7 +55,7 @@ # Get the package_id depending on which calender_id was set db_0or1row select_calendar_package_id {select package_id from calendars where calendar_id=:calendar_id} -if { ![info exists period_days] } { +if { $period_days eq "" } { set period_days [parameter::get -package_id $package_id -parameter ListView_DefaultPeriodDays -default 31] }