Skip to content
Snippets Groups Projects
Commit d9f8178e authored by joshua-jake's avatar joshua-jake Committed by Steven Ayers
Browse files

Issue #3466718: Subscription Controller Flag Error not returning flag name

parent c21b3e6a
No related branches found
No related tags found
1 merge request!24Update SubscriptionController.php
Pipeline #421343 failed
......@@ -206,7 +206,7 @@ final class SubscriptionController extends ControllerBase {
// Check that the flag is valid.
$rel_flag = $this->flagService->getFlagById($relationship['flag']);
if (!$rel_flag || (!$rel_flag->status())) {
throw new MessageSubscribeException('Flag "' . $relationships['flag'] . '" is not setup correctly. It is probably disabled or have no bundles configured.');
throw new MessageSubscribeException('Flag "' . $relationship['flag'] . '" is not setup correctly. It is probably disabled or has no bundles configured.');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment