-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Deleting files from an asset removes the log of its creation and does not log the deletion #8444
Comments
This seems to be a design issue. Files attached to assets are tracked via the activity tracker and is therefore difficult achieve the desire result. However, I crated a work around with the following code in the file \app\Http\Controllers\AssetFilesController.php under the destroy function in the "if ($log)" section under where it unlinks the file.
This will log the deletion as well as update the upload entry to still remain but not linking itself to the item for display under that item. |
I also resolved another error with files NOT actually deleting off the server when being deleted. |
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. |
Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know! |
Please confirm you have done the following before posting your bug report:
Describe the bug
When deleting files from an asset the log of the file's upload is removed and the deletion is not logged. I consider this a bug as from an auditing perspective eliminates the audit of the file.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the original upload activity to remain and the deletion activity to be logged.
Screenshots
If applicable, add screenshots to help explain your problem.
Server (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Error Messages
N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: