Merge to Trunk. Fixing addAuthorsToInformationResource.jsp NIHVIVO-1009
This commit is contained in:
parent
5e07aff4db
commit
6e2e8c632e
1 changed files with 5 additions and 0 deletions
|
@ -238,6 +238,11 @@ SPARQL queries for existing values. --%>
|
||||||
|
|
||||||
Model model = (Model) application.getAttribute("jenaOntModel");
|
Model model = (Model) application.getAttribute("jenaOntModel");
|
||||||
String objectUri = (String) request.getAttribute("objectUri");
|
String objectUri = (String) request.getAttribute("objectUri");
|
||||||
|
|
||||||
|
//for some reason we are comming from the add new and that is working
|
||||||
|
//but we also come from the edit, and that is not working.
|
||||||
|
editConfig.setObject(""); //this will force the edit config to always be an add, never an update
|
||||||
|
|
||||||
editConfig.prepareForNonUpdate(model); // we're only adding new, not editing existing
|
editConfig.prepareForNonUpdate(model); // we're only adding new, not editing existing
|
||||||
|
|
||||||
String subjectUri = vreq.getParameter("subjectUri");
|
String subjectUri = vreq.getParameter("subjectUri");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue