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.
Problem/Motivation
The logic for photos_access gets mixed up when switching between options. Sometimes multiple entries will be in {photos_access_album}
for the same nid and this will cause problems with the views filter. Also the password is wiped out in various places. One if the password field is left blank when updating the node after a password has been set.
Proposed resolution
Keep one row per node in {photos_access_album}
and update as needed.
Remaining tasks
- Test switching between all options while keeping an eye on the
{photos_access_album}
table and{node_access}
. - Check if password is empty before updating. Make update query dynamic.
Comments
Comment #2
Nathaniel CreditAttribution: Nathaniel commentedThis might require some restructuring.
Remove
{photos_access_album}.updateid
and add{photos_access_user}.collaborate
.Comment #3
Nathaniel CreditAttribution: Nathaniel commentedBackporting to 7.x-3.x.
Need to update 8.x-4.x migration files.
Comment #7
Nathaniel CreditAttribution: Nathaniel commented