Commits

Alex Willmer committed 447c271

Use TicketSystem.default_copy_fields directly

Comments (0)

Files changed (1)

trac/ticket/model.py

         field_names = [f['name'] for f in self.fields]
         
         if not link_field_name and copy_field_names is None:
-            # TicketSystem(env).default_copy_fields evaluates to a CSV string
-            # so use the config API to get the desired list
-            copy_field_names = self.env.config.getlist('ticket', 
-                                                       'default_copy_fields')
+            copy_field_names = ticket_sys.default_copy_fields
+            
         elif (link_field_name in ticket_sys.link_ends_map 
               and copy_field_names is None):
             link_field = [f for f in self.fields