# HG changeset patch
# User totetm <>
# Date 1265971982 -3600
# Node ID 7fa99f1c36a486809b00d8ce48a9ba97807c456a
# Parent 594fdedecf7f3e2982a746eb151c3e36dce227a2
Fixed | pb d'affichage dans la liste des annotations (rafraichissement +
champs vide ? )
diff -r 594fdedecf7f -r 7fa99f1c36a4 client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs
--- a/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Thu Feb 11 17:29:23 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Fri Feb 12 11:53:02 2010 +0100
@@ -343,7 +343,7 @@
_newAnnotation.Type = _selectedType ;
_basicRelation.ToElement = _newAnnotation;
_basicRelation.Type = _newAnnotation.Type;
- _refElement.Chapter.Annotations.Add(_newAnnotation);
+ _refElement.Chapter.Annotations.Add(new Annotation(_newAnnotation));
_refElement.Chapter.Book.BasicLinks.Add(_basicRelation);
if(_polemicRelation.ToElement != null)
{
diff -r 594fdedecf7f -r 7fa99f1c36a4 client/src/Iri.Modernisation.Data/Models/Annotation.cs
--- a/client/src/Iri.Modernisation.Data/Models/Annotation.cs Thu Feb 11 17:29:23 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/Annotation.cs Fri Feb 12 11:53:02 2010 +0100
@@ -40,5 +40,10 @@
: base(Vc)
{
}
+ public Annotation(Annotation old) : base(old)
+ {
+ Type = old.Type;
+ Contributer = old.Contributer;
+ }
}
}
diff -r 594fdedecf7f -r 7fa99f1c36a4 client/src/Iri.Modernisation.Data/Models/PolemicElement.cs
--- a/client/src/Iri.Modernisation.Data/Models/PolemicElement.cs Thu Feb 11 17:29:23 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/PolemicElement.cs Fri Feb 12 11:53:02 2010 +0100
@@ -72,7 +72,7 @@
/// Element à copier
public PolemicElement(PolemicElement copy): base(copy)
{
-
+ this.Id = copy.Id;
this.Title = copy.Title;
this.Description = copy.Description;
this.Tags = new List(copy.Tags);