-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5545 from seadowg/audit-log-constraint
Don't flush audit log when constraints fail
- Loading branch information
Showing
3 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
collect_app/src/androidTest/assets/forms/one-question-audit-constraint.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<h:html xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" | ||
xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" | ||
xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns="http://www.w3.org/2002/xforms"> | ||
<h:head> | ||
<h:title>One Question Audit Constraint</h:title> | ||
<model> | ||
<instance> | ||
<data id="one_question_audit" orx:version="1"> | ||
<age /> | ||
<meta> | ||
<audit /> | ||
</meta> | ||
</data> | ||
</instance> | ||
<bind constraint=". < 120" nodeset="age" type="int" jr:constraintMsg="Too old!" /> | ||
<bind nodeset="/data/meta/audit" type="binary" odk:track-changes="true" /> | ||
</model> | ||
</h:head> | ||
<h:body> | ||
<input ref="/data/age"> | ||
<label>What is your age?</label> | ||
</input> | ||
</h:body> | ||
</h:html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters