[longomatch] Use a real copy of the template when copying system templates
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use a real copy of the template when copying system templates
- Date: Thu, 8 Jan 2015 14:02:18 +0000 (UTC)
commit 3fd33f92fe6e27b206ef0f1d6324036beedecf25
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Jan 8 15:01:44 2015 +0100
Use a real copy of the template when copying system templates
LongoMatch.Services/Services/TemplatesService.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/TemplatesService.cs
b/LongoMatch.Services/Services/TemplatesService.cs
index 6823a04..df884ef 100644
--- a/LongoMatch.Services/Services/TemplatesService.cs
+++ b/LongoMatch.Services/Services/TemplatesService.cs
@@ -192,6 +192,8 @@ namespace LongoMatch.Services
if (template == null) {
template = Load (orig);
+ } else {
+ template = Cloner.Clone (template);
}
template.ID = new Guid ();
template.Name = copy;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]