summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramccabe2017-10-06 10:22:51 -0500
committerMark Carver2017-10-06 10:22:51 -0500
commitb12717e7876f65a95110feeba465da1e0b7938e1 (patch)
tree5f5af410d30b9ed0de2cdc89ae3a9f4286c34c3e
parentb66924ec92a3ce4b16a54a854bb3257d12e7f550 (diff)
Issue #2686247 by alexdmccabe, markcarver: Ajax not working in dropbuttons (operation links)HEAD8.x-3.x
-rw-r--r--src/Plugin/Preprocess/BootstrapDropdown.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Plugin/Preprocess/BootstrapDropdown.php b/src/Plugin/Preprocess/BootstrapDropdown.php
index fbd0e68..5ccff87 100644
--- a/src/Plugin/Preprocess/BootstrapDropdown.php
+++ b/src/Plugin/Preprocess/BootstrapDropdown.php
@@ -84,8 +84,8 @@ class BootstrapDropdown extends PreprocessBase implements PreprocessInterface {
'#type' => 'link',
'#title' => $element['title'],
'#url' => $element['url'],
- '#ajax' => isset($element['ajax']) ? $element['ajax'] ? [],
- '#attributes' => isset($element['attributes']) ? $element['attributes'] ? [],
+ '#ajax' => isset($element['ajax']) ? $element['ajax'] : [],
+ '#attributes' => isset($element['attributes']) ? $element['attributes'] : [],
];
}
}