Make this module compatible with Drupal 9.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | events_log_track-D9_compatibility-3139060-14303888.patch | 6.84 KB | smustgrave |
| #16 | events_log_track-D9_compatibility-3139060-14303888.patch | 7.64 KB | redzeuf |
| #12 | audit.zip | 26.98 KB | bhaskar-chakraborty |
| #11 | drupal-9-version-patch-new.patch | 8.24 KB | akhilsoni |
| #9 | 3179438-9.patch | 8.24 KB | kuldeep_mehra27 |
Issue fork events_log_track-3179438
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gauravvvv commentedPatch applied cleanly. Adding a after patch screenshot for reference. RTBC +1
Comment #3
anish.a commentedError: Call to undefined method Drupal\user\Entity\User::getUsername() in event_log_track_user_update() (line 45 of *snip*docroot/modules/ported/events_log_track/event_log_track_user/event_log_track_user.module)
This is depricated.
https://api.drupal.org/api/drupal/core%21modules%21user%21src%21Entity%2...
Comment #4
akhilsoni commentedgetUsername() is deprecated in drupal9 we can use getAccountName() instead.
Comment #5
weri commentedComment #7
asrobHi @akhilsoni1992,
I tried to apply your patch but I could not. The problem is the following:
I converted it
and it works well, I can use git apply without any problems.
I think you should check (and re-upload) your patch so as to people can apply it cleanly.
Comment #8
kuldeep_mehra27 commentedComment #9
kuldeep_mehra27 commentedProblem in file encoding. I have fixed it and created new patch.
Comment #10
stijnhau commentedAny idea when this patch can be included
Comment #11
akhilsoni commentedHello
I have recreated the patch with the us-ASCII format. Please find the patch below.
Thanks.
Comment #12
bhaskar-chakraborty commentedI make it entirely custom
Comment #13
ssoumya commented#4 yes. Changing getUsername() to getAccountName() in all the .module files and adding core_version_requirement: ^8 || ^9 to .info.yml files does the job.
Comment #14
redzeufI feel like in file src/OverviewForm.php line 61 it sound better to use
getDisplayName()instead ofgetAccountName()has the Display Name is better to construct the Link to display. AccountName is the unique ID of the user for the identification, some user should add their email as account name and it's better not to display this private and system information to public.Comment #15
redzeufHere is the patch regarding the diff of my previous message #14
Comment #16
redzeufThe previous patch in message #15 is false. I make a mistake with the path of files.
I fixed it here.
Comment #17
smustgrave commentedUpdated #16 to be used by composer.
Comment #18
smustgrave commentedStarted a 3.0.x branch with these changes.
Comment #19
smustgrave commentedComment #22
smustgrave commented