Jean-Francois Leveque

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

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