Includes the ability for users to copy or clone previously created announcements. In their user overview page there will be a copy button for them to select. They will automatically be brought to the modification page for that new announcement. Files will copy into the new record, but are not duplicated upon copying the announcement, leaving system storage unaffected.
Fixes
PHP versions were messed up in the previous PR, causing issues on some systems with "weird" PHP installs. This is resolved.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
As the change is a simple clone command, unit tests did not feel necessary. The function(s) are similar to the "modify_announcement" function.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
Includes the ability for users to copy or clone previously created announcements. In their user overview page there will be a copy button for them to select. They will automatically be brought to the modification page for that new announcement. Files will copy into the new record, but are not duplicated upon copying the announcement, leaving system storage unaffected.
Fixes
PHP versions were messed up in the previous PR, causing issues on some systems with "weird" PHP installs. This is resolved.
Type of change
How Has This Been Tested?
As the change is a simple clone command, unit tests did not feel necessary. The function(s) are similar to the "modify_announcement" function.
Checklist: