Bug Fix: Properly account for trigger field being set for the current…#40
Open
Bug Fix: Properly account for trigger field being set for the current…#40
Conversation
… repeat instance. Bug Fix: Remove characters from record name that are invalid.
ChemiKyle
reviewed
May 6, 2026
| $newRecordID = \Piping::replaceVariablesInLabel($recordSetting,$srcRecordID,$event_id,$repeat_instance,$recordData,true,$srcProjectID,false); | ||
| } | ||
| return $newRecordID; | ||
| return str_replace(['&','+','`','\`','#'],"",$newRecordID); |
Contributor
There was a problem hiding this comment.
Sanity check: are double quotes a possibility?
Are any other non alnum characters a possibility?
Contributor
Author
There was a problem hiding this comment.
REDCap was throwing a very specific error for the characters it does not accept. Outside of that, this record ID could technically be anything people could enter into data fields.
ChemiKyle
reviewed
May 6, 2026
Co-authored-by: Kyle Chesney <kyle.2493@gmail.com>
…ecord_updates # Conflicts: # AutoRecordGenerationExternalModule.php
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… repeat instance.
Bug Fix: Remove characters from record name that are invalid.
Pre-flight Checklist
Overview
Fix for matching events properly. Update to restrict new record names to avoid characters REDCap does not allow.
Jira Ticket here: https://vumc-victr.atlassian.net/browse/DCCB-51?atlOrigin=eyJpIjoiYjUzYjE0NWYzNGY5NDU1NjljOTc1MzEzMWNiZWJjZjciLCJwIjoiaiJ9