Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record creator in history #1144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

radarhere
Copy link
Contributor

#1087 reports that a person's creator is not displayed anywhere.

This PR suggests extending the 'Created' entry in the 'History' tab to 'Created by John Smith (#1)', like the 'Updated by' entries.

$user = $GLOBALS['user_system']->getCurrentPerson();
$now = time();
$this->values['history'][$now] = 'Updated by '.$user['first_name'].' '.$user['last_name'].' (#'.$user['id'].")\n".implode("\n", $changes);

This wouldn't change anything for entities already created, but it would show the information for entities created moving forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant