Commit 23dbb236 authored by Vincent Pelletier's avatar Vincent Pelletier

Use "min" instead of "nlt", otherwise the 1st of january would always be ignored.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25005 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb0e33cf
......@@ -123,7 +123,7 @@ if listbox is not None:\n
first_day_of_year = DateTime(start_date.year(), 1, 1)\n
counter_date_list = [x.getObject() for x in context.portal_catalog(\n
portal_type=\'Counter Date\',site_uid=site_uid,\n
start_date={\'query\': first_day_of_year, \'range\': \'nlt\'},\n
start_date={\'query\': first_day_of_year, \'range\': \'min\'},\n
sort_on=[(\'start_date\',\'descending\')],limit=1,\n
simulation_state=(\'open\',\'closed\'))]\n
previous_reference = None\n
......
478
\ No newline at end of file
479
\ No newline at end of file
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