Temporary hack in order to test a bug in ODK Collect.
[gpl/argeo-suite.git] / knowledge / org.argeo.support.odk / src / org / argeo / support / odk / OdkUtils.java
index 0e73295b6f3d6c3f1ab7744d3b9bf9290160781f..887d655d516cbb58061d3a0c21fa984f8889d120 100644 (file)
@@ -71,7 +71,8 @@ public class OdkUtils {
                                                        if (!path.endsWith(".xml"))
                                                                throw new IllegalArgumentException("File uri " + instanceUri + " must end with .xml");
                                                        path = path.substring(0, path.length() - ".xml".length());
-                                                       Node target = file.getSession().getNode(path);
+                                                       // FIXME hard code terms path in order to test ODK Collect bug
+                                                       Node target = file.getSession().getNode("/example/terms"+path);
                                                        if (target.isNodeType(NodeType.MIX_REFERENCEABLE)) {
                                                                file.setProperty(Property.JCR_ID, target);
                                                                if (file.hasProperty(Property.JCR_PATH))