Commit 5575ab18 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_blog: check effective date firstly

parent 435dd9d1
...@@ -179,6 +179,10 @@ ...@@ -179,6 +179,10 @@
<key> <string>sort</string> </key> <key> <string>sort</string> </key>
<value> <value>
<list> <list>
<tuple>
<string>effective_date</string>
<string>descending</string>
</tuple>
<tuple> <tuple>
<string>creation_date</string> <string>creation_date</string>
<string>descending</string> <string>descending</string>
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: cell.getCreationDate()</string> </value> <value> <string>python: cell.getEffectiveDate() if cell.getEffectiveDate() else cell.getCreationDate()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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