Commit d4dfe920 authored by Nigel McNie's avatar Nigel McNie
Browse files

[#2984] Rename groups to have '.deleted.timestamp' after their name when they're deleted.

(cherry picked from commit 91e26085)

Conflicts:

	htdocs/lib/group.php
parent 28c9cdac
......@@ -300,7 +300,15 @@ function group_create($data) {
*/
function group_delete($groupid) {
$groupid = group_param_groupid($groupid);
update_record('group', array('deleted' => 1), array('id' => $groupid));
update_record('group',
array(
'deleted' => 1,
'name' => get_field('group', 'name', 'id', $groupid) . '.deleted.' . time(),
),
array(
'id' => $groupid,
)
);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment