diff roundup/cgi/KeywordsExpr.py @ 5132:0142b4fb5a2d

issue2550648 - partial fix for problem in this issue. Ezio Melotti reported that the expression editor allowed the user to generate an expression using retired values. To align the expression editor with the simple dropdown search item, retired values are now removed from the expression editor. Do we really want this though? Supposed a keyword is retired and I want to search for an issue with that retired keyword? Do we have a best policy document that says to remove retired keywords from all places it could possibly be used? It could be argued that the simple search dropdown is wrong and should allow selecting retired values.
author John Rouillard <rouilj@ieee.org>
date Fri, 08 Jul 2016 19:31:02 -0400
parents e46b15b0bc25
children 17b213eab274
line wrap: on
line diff
--- a/roundup/cgi/KeywordsExpr.py	Wed Jul 06 22:19:32 2016 -0400
+++ b/roundup/cgi/KeywordsExpr.py	Fri Jul 08 19:31:02 2016 -0400
@@ -245,7 +245,7 @@
     prop = request.form.getfirst("property")
     cls = request.client.db.getclass(prop)
     items = []
-    for nodeid in cls.getnodeids():
+    for nodeid in cls.getnodeids(retired=0):
         l = cls.getnode(nodeid).items()
         l = dict([x for x in l if len(x) == 2])
         try:

Roundup Issue Tracker: http://roundup-tracker.org/