I'm trying to use DraggableViews to sort order of custom blocks, unfortunately, when trying to save an order, it ends with an error:
Failed with SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'entity_id' cannot be null: INSERT INTO "draggableviews_structure" ("view_name", "view_display", "args", "entity_id", "weight") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => fp_featured_admin [:db_insert_placeholder_1] => page_1 [:db_insert_placeholder_2] => [] [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => )
In the result, warning is displayed:
There was an error while saving the data. Please, try again.
And Drupal log shows the message as at the begining.
Closed: outdated
2.1
Code