ui-icts / redcap-admin-dashboard

Provides a sortable table view of various reports on REDCap metadata
MIT License
2 stars 2 forks source link

Report SQL editor fails in REDCap version 12.0.23 #13

Closed AndrewPoppe closed 1 year ago

AndrewPoppe commented 2 years ago

https://github.com/ui-icts/redcap-admin-dashboard/blob/f3254e28d85e245e41a7a767cd7e9303172f87ff/redcapDataEntryForm.js#L52

The child selector fails, since REDCap has begun inserting a span in between the td.data and the textarea elements. See DataEntry.php line 4215 in REDCap's source.

Changing to a descendant selector would solve this issue:

editor.setValue($fieldTr.find('.data textarea').val());

I can submit a pull request if needed.