NIHVIVO-1045 If a request to delete an image comes from a fly-out link on the display page, then that's the page we should return to.

This commit is contained in:
jeb228 2010-08-05 16:04:24 +00:00
parent 28cdade5dd
commit 3b392c7eba

View file

@ -241,6 +241,7 @@ public class ImageUploadController extends FreemarkerHttpServlet {
} else if (ACTION_SAVE.equals(action)) {
return doCreateThumbnail(vreq, entity);
} else if (ACTION_DELETE.equals(action)) {
captureReferringUrl(vreq);
return doDeleteImage(vreq, entity);
} else if (ACTION_DELETE_EDIT.equals(action)) {
return doDeleteThenEdit(vreq, entity);