Skip to content
Snippets Groups Projects

Issue #3263519: Update patch to take into account the most recent 2.1.4 release, which adds in...

Open Issue #3263519: Update patch to take into account the most recent 2.1.4 release, which adds in...
Open Drew Robinson requested to merge issue/draggableviews-3263519:2.1.x into 2.1.x
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
@@ -197,6 +197,17 @@ function draggableviews_views_submit(&$form, FormStateInterface $form_state) {
$transaction = $connection->startTransaction();
try {
foreach ($input['draggableviews'] as $item) {
// Remove potential legacy rows with args = '[]' to prevent
// duplicate results.
if ($view_args !== '[]') {
$connection->delete('draggableviews_structure')
->condition('view_name', $view_name)
->condition('view_display', $view_display)
->condition('args', '[]')
->condition('entity_id', $item['id'])
->execute();
}
// Remove old data.
$connection->delete('draggableviews_structure')
->condition('view_name', $view_name)
Loading