Skip to content
Snippets Groups Projects
Commit 080df1ef authored by Chris Caldwell's avatar Chris Caldwell Committed by Aaron Bauman
Browse files

Issue #3029568 by chrisolof, aaronbauman: Data too long for column 'salesforce_mapping'

parent e1a30110
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
namespace Drupal\salesforce_mapping\Form;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\salesforce_mapping\MappingConstants;
use Drupal\Core\Url;
......@@ -41,7 +42,7 @@ abstract class SalesforceMappingFormCrudBase extends SalesforceMappingFormBase {
'#type' => 'machine_name',
'#required' => TRUE,
'#default_value' => $mapping->id(),
'#maxlength' => 255,
'#maxlength' => EntityTypeInterface::ID_MAX_LENGTH,
'#machine_name' => [
'exists' => ['Drupal\salesforce_mapping\Entity\SalesforceMapping', 'load'],
'source' => ['label'],
......
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