NIHVIVO-629 Change return path after submitting role form when editing existing role (return to person rather than activity)
This commit is contained in:
parent
7f7b302fbb
commit
e63ad478cf
1 changed files with 5 additions and 2 deletions
|
@ -275,15 +275,18 @@
|
||||||
|
|
||||||
editConfig.addValidator(new StartYearBeforeEndYear("startYear","endYear") );
|
editConfig.addValidator(new StartYearBeforeEndYear("startYear","endYear") );
|
||||||
|
|
||||||
//this will return the browser to the new activity entity after an edit.
|
|
||||||
editConfig.setEntityToReturnTo("?roleActivity");
|
|
||||||
|
|
||||||
Model model = (Model) application.getAttribute("jenaOntModel");
|
Model model = (Model) application.getAttribute("jenaOntModel");
|
||||||
String objectUri = (String) request.getAttribute("objectUri");
|
String objectUri = (String) request.getAttribute("objectUri");
|
||||||
if (objectUri != null) {
|
if (objectUri != null) {
|
||||||
editConfig.prepareForObjPropUpdate(model);
|
editConfig.prepareForObjPropUpdate(model);
|
||||||
|
// Return browser to person individual after editing an existing role.
|
||||||
} else {
|
} else {
|
||||||
editConfig.prepareForNonUpdate(model);
|
editConfig.prepareForNonUpdate(model);
|
||||||
|
// Return the browser to the new activity entity after adding a new role.
|
||||||
|
editConfig.setEntityToReturnTo("?roleActivity");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> customJs = new ArrayList<String>(Arrays.asList(JavaScript.JQUERY_UI.path(),
|
List<String> customJs = new ArrayList<String>(Arrays.asList(JavaScript.JQUERY_UI.path(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue