Revision 1287 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.services/src/main/java/org/gvsig/tools/dynform/services/dynformset/subform/SubformJDynFormSet.java
SubformJDynFormSet.java | ||
---|---|---|
213 | 213 |
} |
214 | 214 |
|
215 | 215 |
if (autosave) { |
216 |
if (!doActionSave()) { |
|
217 |
return false; |
|
216 |
if (this.form.isModified()) { |
|
217 |
if (!doActionSave()) { |
|
218 |
return false; |
|
219 |
} |
|
218 | 220 |
} |
219 | 221 |
} |
220 | 222 |
this.current = 0; |
... | ... | |
239 | 241 |
} |
240 | 242 |
|
241 | 243 |
if (autosave) { |
242 |
if (!doActionSave()) { |
|
243 |
return false; |
|
244 |
if (this.form.isModified()) { |
|
245 |
if (!doActionSave()) { |
|
246 |
return false; |
|
247 |
} |
|
244 | 248 |
} |
245 | 249 |
} |
246 | 250 |
if (this.current > 0) { |
... | ... | |
258 | 262 |
} |
259 | 263 |
|
260 | 264 |
if (autosave) { |
261 |
if (!doActionSave()) { |
|
262 |
return false; |
|
265 |
if (this.form.isModified()) { |
|
266 |
if (!doActionSave()) { |
|
267 |
return false; |
|
268 |
} |
|
263 | 269 |
} |
264 | 270 |
} |
265 | 271 |
if (this.current < this.values.size() - 1) { |
... | ... | |
277 | 283 |
} |
278 | 284 |
|
279 | 285 |
if (autosave) { |
280 |
if (!doActionSave()) { |
|
281 |
return false; |
|
286 |
if (this.form.isModified()) { |
|
287 |
if (!doActionSave()) { |
|
288 |
return false; |
|
289 |
} |
|
282 | 290 |
} |
283 | 291 |
} |
284 | 292 |
this.current = this.values.size() - 1; |
... | ... | |
292 | 300 |
if (this.values.isEmpty()) { |
293 | 301 |
return false; |
294 | 302 |
} |
295 |
if (!this.form.isModified()) { |
|
296 |
return true; |
|
297 |
} |
|
298 | 303 |
try { |
299 | 304 |
this.listeners.accept(new Visitor() { |
300 | 305 |
public void visit(Object listener) throws VisitCanceledException, BaseException { |
Also available in: Unified diff