Skip to content

Instantly share code, notes, and snippets.

@bangpound
Last active August 26, 2016 16:26
Show Gist options
  • Save bangpound/81831df3c204b7c8b26350d8dbdbd860 to your computer and use it in GitHub Desktop.
Save bangpound/81831df3c204b7c8b26350d8dbdbd860 to your computer and use it in GitHub Desktop.
hides error message.
diff --git a/src/Entity/Workflow.php b/src/Entity/Workflow.php
index d484db9..e79c6e0 100644
--- a/src/Entity/Workflow.php
+++ b/src/Entity/Workflow.php
@@ -296,7 +296,7 @@ class Workflow extends ConfigEntityBase implements WorkflowInterface {
}
else {
// This should never happen, but it did during testing.
- drupal_set_message(t('There are no workflow states available. Please notify your site administrator.'), 'error');
+ // drupal_set_message(t('There are no workflow states available. Please notify your site administrator.'), 'error');
$sid = 0;
}
return $sid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment