liquid_feedback_frontend
changeset 162:3d0b6f87d8e5
Fixed timeline search for queries without options except date(range)
author | bsw |
---|---|
date | Sat Oct 09 17:37:10 2010 +0200 (2010-10-09) |
parents | ff6162022615 |
children | ab0149f40b75 |
files | app/main/timeline/_action/update.lua |
line diff
1.1 --- a/app/main/timeline/_action/update.lua Sat Oct 09 14:29:19 2010 +0200 1.2 +++ b/app/main/timeline/_action/update.lua Sat Oct 09 17:37:10 2010 +0200 1.3 @@ -28,14 +28,14 @@ 1.4 end 1.5 end 1.6 1.7 +if not options_string then 1.8 + options_string = "issue_created:* issue_finished_after_voting:* issue_accepted:* issue_voting_started:* suggestion_created:* issue_canceled:* initiative_created:* issue_finished_without_voting:* draft_created:* initiative_revoked:* issue_half_frozen:* " 1.9 +end 1.10 + 1.11 if param.get_list("option_ignore_area", atom.string) then 1.12 options_string = options_string.." ignore_area:"..table.concat(param.get_list("option_ignore_area", atom.string), "|") 1.13 end 1.14 1.15 -if not options_string then 1.16 - options_string = "issue_created:* issue_finished_after_voting:* issue_accepted:* issue_voting_started:* suggestion_created:* issue_canceled:* initiative_created:* issue_finished_without_voting:* draft_created:* initiative_revoked:* issue_half_frozen:* " 1.17 -end 1.18 - 1.19 local setting_key = "liquidfeedback_frontend_timeline_current_options" 1.20 local setting = Setting:by_pk(app.session.member.id, setting_key) 1.21