Skip to content

Commit 9d60fb2

Browse files
committed
Return true from stub
1 parent ddbf4ac commit 9d60fb2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/org/opendatakit/validate/FormValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public String getName() {
500500
}
501501

502502
public List<Class[]> getPrototypes() {
503-
return new ArrayList<Class[]>();
503+
return new ArrayList<>();
504504
}
505505

506506
public boolean rawArgs() {
@@ -513,7 +513,7 @@ public boolean realTime() {
513513

514514
public Object eval(Object[] args, EvaluationContext ec) {
515515
// stub for validation
516-
return args[0];
516+
return true;
517517
}
518518
});
519519

src/test/resources/intersects_function.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<calc/>
1212
</data>
1313
</instance>
14-
<bind nodeset="/data/calc" calculate="intersects(/data/q1)" type="string"/>
14+
<bind nodeset="/data/calc" calculate="if(intersects(/data/q1), 'y', 'n')" type="string"/>
1515
</model>
1616
</h:head>
1717
<h:body>

0 commit comments

Comments
 (0)