diff --git a/netbox/utilities/templatetags/buttons.py b/netbox/utilities/templatetags/buttons.py index d7c0998c3a6..45323d5cdb6 100644 --- a/netbox/utilities/templatetags/buttons.py +++ b/netbox/utilities/templatetags/buttons.py @@ -39,7 +39,9 @@ def clone_button(url, instance): if field_value not in (None, ''): params[field_name] = field_value - # TODO: Tag replication + # Copy tags + if hasattr(instance, 'tags'): + params['tags'] = ','.join([t.name for t in instance.tags.all()]) # Append parameters to URL param_string = '&'.join(['{}={}'.format(k, v) for k, v in params.items()])