summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-11-15 18:37:17 +0100
committerlpsolit%gmail.com <>2005-11-15 18:37:17 +0100
commit9410caae8b2f32207a5ab6146c0c49333ab7e366 (patch)
tree792bcb4aaad25b6947a8af99868b3ac56685d25f /Bugzilla
parentea20355dfe228f3346f331df521fcfc54cb71fc2 (diff)
downloadbugzilla-9410caae8b2f32207a5ab6146c0c49333ab7e366.tar.gz
bugzilla-9410caae8b2f32207a5ab6146c0c49333ab7e366.tar.xz
Bug 302599: Saved searches using "days since bug changed" fail with "Can't use (to_days(now()) - to_days(bugs.delta_ts)) as a field name" error - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index cc24d11e0..da6c90e9a 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -880,7 +880,7 @@ sub init {
$f = "setters_$chartid.login_name";
},
- "^changedin," => sub {
+ "^(changedin|days_elapsed)," => sub {
$f = "(" . $dbh->sql_to_days('NOW()') . " - " .
$dbh->sql_to_days('bugs.delta_ts') . ")";
},