https://github.com/ctsit/project_sequestration_ui_hack
Displays completed projects as "Sequestered" if they are flagged as such
https://github.com/ctsit/project_sequestration_ui_hack
Last synced: 19 days ago
JSON representation
Displays completed projects as "Sequestered" if they are flagged as such
- Host: GitHub
- URL: https://github.com/ctsit/project_sequestration_ui_hack
- Owner: ctsit
- Created: 2022-04-06T20:00:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-14T19:55:33.000Z (almost 4 years ago)
- Last Synced: 2025-02-27T20:32:56.167Z (over 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# project_sequestration_ui_hack
Displays completed projects as "Sequestered" if they are flagged as such
## Notes on sequestering / unsequestering
This module does not set the sequestered flag nor does it mark projects as completed. It is dependent upon another service to make those data changes where appropriate.
That service would need to set `sequestered = 1` in the table `redcap_entity_project_ownership`. It would also need to set `completed_time = '".NOW."', completed_by = '".db_escape(USERID)."'` in the `redcap_projects` table.
To unsequester a project, it would need to set `sequestered = 0` in the table `redcap_entity_project_ownership` and set `completed_time = NULL, completed_by = NULL` in the `redcap_projects` table.
For a project state reference see the behavior of `ProjectGeneral/change_project_status.php`.