-
Notifications
You must be signed in to change notification settings - Fork 447
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
Activity Log not updating for metadata changes #10019
Comments
@bozana, could you look at this one? Thanks! |
Hi @salmanm2003,
here: https://github.com/pkp/pkp-lib/blob/stable-3_3_0/controllers/grid/users/author/AuthorGridHandler.inc.php#L394 Thanks a lot! |
@bozana Thanks for the clarification. I can add it to deleting authors as well. Additionally, there is one more thing that we can do that might help more. When adding, editing, or deleting contributor data, we can call I understand this is more of a workaround than a bug fix, but it will address the logging issue and allow the plugins to recognize that the publication has been updated? |
Hi @salmanm2003, yes, that sound good! This will also change |
…ating_contributors_log #10019 Activity Log not updating when modifying contributor
pkp/pkp-lib#10019 submodule update ##pkp/stable-3_3_0##
pkp/pkp-lib#10019 submodule update ##pkp/stable-3_3_0##
pkp/pkp-lib#10019 submodule update ##pkp/stable-3_3_0##
#10019 Fix publication update when modifying contributor
pkp/pkp-lib#10019 submodule update ##bozana/10019-3_4_0##
pkp/pkp-lib#10019 submodule update ##bozana/10019-3_4_0##
pkp/pkp-lib#10019 submodule update ##bozana/10019-3_4_0##
#10019 Fix publication update when modifying contributor
Hi @salmanm2003, I provided the submodule updates (they enable running the tests, and, especially for the stable branches, provide the right/coherent data for those installations using git), and ported the changes to stable-3_4_0 and main. Everything is merged now. |
@bozana do you have any feeling of when 3.3.0-18 will be released? If I understand correctly, the work on this issue will be included in 3.3.0-18? |
Hi @fradeve, we are planning the next release(s) for middle of July. |
Hi @asmecher,
Updating contributor metadata in OJS is only logged in the Activity Log if it pertains to the primary author. Changes to co-authors' details are not reflected in the Activity Log, even though they are updated in the UI. This omission results in hidden actions during audits and creates issues during the production process.
To Reproduce
1- go to publication > Contributors
2- edit/add a new contributor
3- check the Activity Log and there wont be any new logs
4- edit the primary author data and the log is going to be there
What application are you using?
OJS version 3-3-0_17
Additional information
https://forum.pkp.sfu.ca/t/activity-log-not-updating-for-metadata-changes/88324
Solution
I could fix it by editing this file:
pkp-lib/controllers/grid/users/author/form/PKPAuthorForm.inc.php
Line 247 in 6e39541
by adding:
https://github.com/ubiquitypress/pkp-lib/blob/ff6d4ccbef4bfb3e3d9c490af2289453fe434feb/controllers/grid/users/author/form/PKPAuthorForm.inc.php#L247-L265
If this properly fixes the issue, please let me know so I can send a PR.
PRs:
stable-3_3_0:
stable-3_4_0:
main:
The text was updated successfully, but these errors were encountered: