Commits

Alex Willmer committed 337676b Merge

Merge from ticket-links-trunk

  • Participants
  • Parent commits 01f3c16, f978de4

Comments (0)

Files changed (3)

File trac/ticket/api.py

File contents unchanged.

File trac/ticket/links.py

             # <end>.copy_fields may be absent or intentionally set empty.
             # config.getlist() will return [] in either case, so check that
             # the key is present before assigning the value
-            cf_keys = ['%s.copy_fields' % end for end in [end1, end2] if end]
-            for cf_key in cf_keys:
-                if cf_key in config:
-                    copy_fields[end] = config.getlist(cf_key)
+            for end in [end1, end2]:
+                if end:
+                    cf_key = '%s.copy_fields' % end
+                    if cf_key in config:
+                        copy_fields[end] = config.getlist(cf_key)
             
         return links, labels, validators, blockers, copy_fields
     

File trac/ticket/tests/links.py

File contents unchanged.