You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/07/16 14:37:05 UTC

[trafficcontrol] branch master updated: preserve the description of the source profile when cloning a profile

This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new b026b20  preserve the description of the source profile when cloning a profile
b026b20 is described below

commit b026b204e900e03220ecea7ce940137cd4f8d04d
Author: Jeremy Mitchell <mi...@gmail.com>
AuthorDate: Fri Jul 13 15:13:33 2018 -0600

    preserve the description of the source profile when cloning a profile
---
 traffic_ops/app/lib/API/Profile.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/app/lib/API/Profile.pm b/traffic_ops/app/lib/API/Profile.pm
index 4b32534..358c630 100644
--- a/traffic_ops/app/lib/API/Profile.pm
+++ b/traffic_ops/app/lib/API/Profile.pm
@@ -281,7 +281,7 @@ sub copy {
 		return $self->alert("profile_copy_from $profile_copy_from_name doesn't exist.");
 	}
 	my $profile_copy_from_id = $row1->id;
-	my $description          = "";
+	my $description          = $row1->description;
 
 	my $cdn = $row1->cdn;
 	my $type = $row1->type;