- Issue created by @Balu Ertl
After reinstalling the module existing media items once created with DAM-related media types still appear on Drupal core's media listing page but they all disappear from the module's own “DAM assets” listing page. Administrators may find this discrepancy disturbing as it confuses them about whether these media items still exist or have been gone.
media__acquia_dam_asset_id
table, a record representing it exists.media__acquia_dam_asset_id
table gets dropped in the DB.media__acquia_dam_asset_id
table got created fully empty.This is because the current filtering logic implemented as a Views filter (source code) strictly checks the existence of records within the media__acquia_dam_asset_id
table. However, when the module uninstalls, this table – among others – gets dropped, but the media items created remain. Next time, when the module is installed again the still existing media items have no mention in the examined DB table, therefore the Views listing returns empty results.
media__acquia_dam_asset_id
table on module uninstallation. Arguments:
Active
1.0
User interface