Skip to content

Commit

Permalink
#13395 now when copy the unique fields the unique values are real uni…
Browse files Browse the repository at this point in the history
…que (#13585)
  • Loading branch information
jdotcms authored and jgambarios committed Feb 7, 2018
1 parent 9704717 commit 8f39379
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3872,8 +3872,9 @@ public void copyProperties(Contentlet contentlet,Map<String, Object> properties,
{
if(checkIsUnique && field.isUnique())
{
String dataType = (field.getFieldContentlet() != null) ? field.getFieldContentlet().replaceAll("[0-9]*", "") : "";
value = value + " (COPY)";
value = value +
new StringBuilder(" (COPY_")
.append(System.currentTimeMillis()).append(')').toString();
}
contentlet.setStringProperty(conVariable, value != null ? (String)value : null);
}else if(isFieldTypeBoolean(field)){
Expand Down

0 comments on commit 8f39379

Please sign in to comment.