Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Due to a small bug, Services Raw only ever assigns the global user to a node, instead of mapping the $node->name to a $user->uid when the user name exists on the site. I'll attach a patch below.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1988448-sc-user-mapping-error.patch | 1.1 KB | mhrabovcin |
#1 | services_client-error-mapping-user-1988448-1.patch | 1.19 KB | cspiker |
Comments
Comment #1
cspiker CreditAttribution: cspiker commentedHere is the patch.
Comment #2
mhrabovcin CreditAttribution: mhrabovcin commentedI don't like using $user variable if its not referencing current user so I've changed that to $account.
Comment #3
mhrabovcin CreditAttribution: mhrabovcin commentedCommitted to repo, thanks!