dr01d3r / redcap-em-orca-search

REDCap External Module that is an alternative to the built-in Add/Edit Records
MIT License
4 stars 1 forks source link

"Add new record" fails when user is assigned to a DAG #1

Closed dr01d3r closed 6 years ago

dr01d3r commented 6 years ago

Button navigates to "/redcap_v8.4.3/ExternalModules/NaN" instead of record_home.

dr01d3r commented 6 years ago

The culprit is that getAutoId() is not wrapped in quotes and is causing the javascript to handle the concatenation as a math operation.

https://github.com/dr01d3r/redcap-em-orca-search/blob/a2ec853d494c602ef16f4f452307bef90e822476/templates/orca_search.tpl#L235

dr01d3r commented 6 years ago

Corrected with latest commit.

https://github.com/dr01d3r/redcap-em-orca-search/blob/cbeafcd7bbca17e705a6a17bda1aa4574e90ba50/templates/orca_search.tpl#L235