mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-5099: Error when trying to go back in Create Web Content Wizard (only with certain XSDs)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23049 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -452,7 +452,16 @@ public class Schema2XForms implements Serializable
|
|||||||
Element oldEl = (Element)old;
|
Element oldEl = (Element)old;
|
||||||
|
|
||||||
// Copy the old instance element rather than cloning it, so we don't copy over attributes
|
// Copy the old instance element rather than cloning it, so we don't copy over attributes
|
||||||
Element clone = newInstanceDocument.createElementNS(oldEl.getNamespaceURI(), oldEl.getTagName());
|
Element clone = null;
|
||||||
|
String nSUri = oldEl.getNamespaceURI();
|
||||||
|
if (nSUri == null)
|
||||||
|
{
|
||||||
|
clone = newInstanceDocument.createElement(oldEl.getTagName());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
clone = newInstanceDocument.createElementNS(nSUri, oldEl.getTagName());
|
||||||
|
}
|
||||||
newInstanceNode.appendChild(clone);
|
newInstanceNode.appendChild(clone);
|
||||||
|
|
||||||
if (oldInstanceNode instanceof Document)
|
if (oldInstanceNode instanceof Document)
|
||||||
|
Reference in New Issue
Block a user