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") );
|
||||
|
||||
//this will return the browser to the new activity entity after an edit.
|
||||
editConfig.setEntityToReturnTo("?roleActivity");
|
||||
|
||||
|
||||
|
||||
Model model = (Model) application.getAttribute("jenaOntModel");
|
||||
String objectUri = (String) request.getAttribute("objectUri");
|
||||
if (objectUri != null) {
|
||||
editConfig.prepareForObjPropUpdate(model);
|
||||
// Return browser to person individual after editing an existing role.
|
||||
} else {
|
||||
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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue