- Merge request !80Fix broken logic for detecting if a views table we're altering is for an entity or not. β (Merged) created by bkosborne
After updating Trash module in D10 from 3.0.18 to 3.0.20, site breaks on pages using views with Draggable Views functionality.
On a D10 site that's using Draggable Views and Trash update from 3.0.18 to 3.0.20, then visit a page that includes a Draggable Views view. Sites blows with message:
Drupal\Core\Database\DatabaseExceptionWrapper: Exception in Industries[industries]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'draggableviews_structure.deleted' in 'where clause'
Full message (in my case):
Drupal\Core\Database\DatabaseExceptionWrapper: Exception in Industries[industries]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'draggableviews_structure.deleted' in 'where clause': SELECT "draggableviews_structure"."weight" AS "draggableviews_structure_weight_1", "node_field_data"."nid" AS "nid", COALESCE(draggableviews_structure.weight, 9223372036854775807) AS "draggableviews_structure_weight" FROM "node_field_data" "node_field_data" LEFT JOIN "node__field_industry_card_icon" "node__field_industry_card_icon" ON node_field_data.nid = node__field_industry_card_icon.entity_id AND node__field_industry_card_icon.deleted = :views_join_condition_0 LEFT JOIN "draggableviews_structure" "draggableviews_structure" ON node_field_data.nid = draggableviews_structure.entity_id AND (draggableviews_structure.view_name = :views_join_condition_1 AND draggableviews_structure.view_display = :views_join_condition_2) WHERE (("node_field_data"."deleted" IS NULL) AND ("draggableviews_structure"."deleted" IS NULL)) AND (("node_field_data"."status" = :db_condition_placeholder_3) AND ("node_field_data"."type" IN (:db_condition_placeholder_4)) AND ("node_field_data"."default_langcode" = :db_condition_placeholder_5) AND ("node__field_industry_card_icon"."field_industry_card_icon_value" IS NOT NULL)) ORDER BY "draggableviews_structure_weight" ASC, "draggableviews_structure_weight_1" ASC LIMIT 9 OFFSET 0; Array ( [:db_condition_placeholder_3] => 1 [:db_condition_placeholder_4] => industry [:db_condition_placeholder_5] => 1 [:views_join_condition_0] => 0 [:views_join_condition_1] => industries [:views_join_condition_2] => page_2 ) in main() (line 19 of index.php).
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.