From 6e2e8c632e253d3bc066a0758c1baee733150a47 Mon Sep 17 00:00:00 2001 From: bdc34 Date: Mon, 26 Jul 2010 22:16:11 +0000 Subject: [PATCH] Merge to Trunk. Fixing addAuthorsToInformationResource.jsp NIHVIVO-1009 --- productMods/edit/forms/addAuthorsToInformationResource.jsp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/productMods/edit/forms/addAuthorsToInformationResource.jsp b/productMods/edit/forms/addAuthorsToInformationResource.jsp index eaf36be4..2d83f31f 100644 --- a/productMods/edit/forms/addAuthorsToInformationResource.jsp +++ b/productMods/edit/forms/addAuthorsToInformationResource.jsp @@ -238,6 +238,11 @@ SPARQL queries for existing values. --%> Model model = (Model) application.getAttribute("jenaOntModel"); 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 String subjectUri = vreq.getParameter("subjectUri");