Jean-Francois Leveque

https://tree.taiga.io/project/jr-utily-grog-v3/us/85 Gerer le cancel dans l'édition de l'éditeur

Done
...@@ -65,7 +65,26 @@ public class PublisherVersionView implements Serializable { ...@@ -65,7 +65,26 @@ public class PublisherVersionView implements Serializable {
65 } 65 }
66 66
67 public void cancel() { 67 public void cancel() {
68 - editMode = false; 68 + if (!newPublisher) {
69 + loadData();
70 + editMode = false;
71 + } else {
72 + publisherName = null;
73 + publisherStreetAddress = null;
74 + publisherPostalCode = null;
75 + publisherPostOfficeBoxNumber = null;
76 + publisherAddressRegion = null;
77 + publisherAddressLocality = null;
78 + publisherAddressCountry = null;
79 + publisherTelephone = null;
80 + publisherEmail = null;
81 + publisherURL = null;
82 + publisherActive = false;
83 + publisherHistory = null;
84 + publisher = null;
85 +
86 + editMode = true;
87 + }
69 } 88 }
70 89
71 public void save() { 90 public void save() {
......