diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dbf088..e6a111f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the Form Render Skip Logic module will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.3.12] - 2021-05-26 +### Changed +- Fix bug that removes arm-event after 10th control field in project level configuration, credit to REDCap community user nathan.orr (mbentz) + ## [3.3.11] - 2020-03-20 ### Changed diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..4d541eb --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +3.3.12 diff --git a/js/config.js b/js/config.js index 2050a15..2833660 100644 --- a/js/config.js +++ b/js/config.js @@ -53,7 +53,7 @@ $(document).ready(function() { var branchingLogicRadios = function($radio) { $radio.prop('checked', true); - var suffix = '____' + $radio.attr('name').slice(-1); + var suffix = $radio.attr('name').slice($radio.attr('name').search('____'),$radio.attr('name').length); var selectorShow = '[name="control_event_id' + suffix + '"], [name="control_field_key' + suffix + '"]'; var selectorHide = '[name="control_piping' + suffix + '"]';