Skip to content
Snippets Groups Projects
Commit 9b063dd3 authored by Kaustab Roy's avatar Kaustab Roy Committed by Bram Driesen
Browse files

Issue #3359932 by Kaustab_Roy, cgoffin: Request path condition negation doesn't work

parent 015c6c39
No related branches found
No related tags found
1 merge request!13Issue #3359932: Request path condition negation doesn't work
......@@ -52,7 +52,7 @@ class BothiveController {
$condition = $this->manager->createInstance('request_path');
$condition->setConfiguration($this->configFactory->get('request_path'));
if ($condition->evaluate() && !empty($this->configFactory->get('api_key'))) {
if ($this->manager->execute($condition) && !empty($this->configFactory->get('api_key'))) {
// Attach the general widget code.
$page['#attached']['library'][] = 'bothive/bothive-widget';
// Initialise the chatbot and pass our settings.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment