goshencollege / gc-communicator

1 stars 0 forks source link

Feature/copy announcement #53

Closed dboling19 closed 2 years ago

dboling19 commented 2 years ago

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:

dboling19 commented 2 years ago

Addresses #53