Open nsimbi opened 1 year ago
Hello @nsimbi - The issue was related to a change Rob made to the core redcap code at version 12.5.4 -- so I assume you are using REDCap 12.5.4 or higher? I believe I just posted a fix. Can you test and let me know?
Yes, @123andy I am running version 12.5.4, I will test out the newest version of the module and revert. Thanks!
Sorry I am coming into this very late. I wanted to update you that issue was not limited to 12.5.4 and up. We had the same issue with 12.4.12 (php 8 & mysql 8). We manually applied the fix presented by @nsimbi which solved our same issue he was having. We cannot update to a newer version as we are running 12.4.31 (Started in 12.4.12 then we upgraded to 12.4.31 and had same issue and applied same fix w/ success). We have encountered another issue and I am posting that separately from this. Just FYI that this issue occurred for us before in earlier versions
Hi Andy, I am using Shibboleth and SAML as the authentication mechanism on our REDCap server. As a result, I also installed this e-signature module. Thanks for detailing its usage.
However, after enabling it, I tried to test and only the record with id 1, was successfully locked and signed. I did further testing, compared with file esignature.js, and found a pattern on every project I created. So I looked at the code for the module, specifically, https://github.com/susom/redcap-em-shibboleth-esignature/blob/master/esignature.js from line 110
On constant testing and looking at the code, I realized that the following
So I have modified the code to work as it does on record id 1 of every project (replacing lines 125-158 of esignature.js with the code below)
function(data) { ShibEsig.popup.dialog('close'); if (data !== "") { // If response is not empty, e-signature was saved ShibEsig.numLogins = 0; // Submit the form if saving e-signature if (ShibEsig.lock_action === 'lock' || ShibEsig.lock_action == '') { formSubmitDataEntry(); } else { setUnlocked("save"); } } else { alert("An error has occurred."); }
Now e-signature works on all records, of all projects.I can submit a pull request for this as well unless there is some implementation I missed to make his module work without any adjustments.