lsgs / redcap-event-navigation-tweaks Goto Github PK
View Code? Open in Web Editor NEWREDCap external module with enhancements to event and arm navigation.
License: GNU General Public License v3.0
REDCap external module with enhancements to event and arm navigation.
License: GNU General Public License v3.0
The 'event_navigation_tweaks' module threw the following exception when calling the hook method 'redcap_data_entry_form_top':
TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/modules/event_navigation_tweaks_v1.0.0/EventNavigationTweaks.php:111
Stack trace:
#0 /var/www/html/modules/event_navigation_tweaks_v1.0.0/EventNavigationTweaks.php(111): array_key_exists('caregiver_burde...', NULL)
#1 /var/www/html/modules/event_navigation_tweaks_v1.0.0/EventNavigationTweaks.php(18): MCRI\EventNavigationTweaks\EventNavigationTweaks->makeEventNavPopoverContent('inquiry_form')
#2 /var/www/html/redcap_v13.4.0/ExternalModules/classes/ExternalModules.php(3133): MCRI\EventNavigationTweaks\EventNavigationTweaks->redcap_data_entry_form_top(...
PHP 8 added check for optional parameters before required parameters.
REDCap EM documentation has updated their function calls by declaring the type within the parameters.
The following function need to be updated to declare the type. Insert the type before each of the variables and the php error message goes away.
void redcap_data_entry_form_top ( int $project_id, string $record = NULL, string $instrument, int $event_id, int $group_id = NULL, int $repeat_instance = 1 )
void redcap_survey_page_top ( int $project_id, string $record = NULL, string $instrument, int $event_id, int $group_id = NULL, string $survey_hash, int $response_id = NULL, int $repeat_instance = 1 )
void redcap_save_record ( int $project_id, string $record = NULL, string $instrument, int $event_id, int $group_id = NULL, string $survey_hash = NULL, int $response_id = NULL, int $repeat_instance = 1 )
Sent: Thursday, March 7, 2024 5:01 PM
Subject: [EXTERNAL]The Event Navigation Tweaks module issue
...
When viewing the English version, the navigation button appears correctly, but when viewing the Chinese version, the button moves to the top of the page instead of appearing on the left side of the "Record Status Dashboard" page.
I'm having trouble getting this module to work after upgrading to REDCap 12.0.23LTS. Specifically, the Data Entry Form event display is not appearing. The other two features seem to work as expected. Any advice?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.