Skip to content
Snippets Groups Projects
Commit 5c0cea1c authored by Adrian Rollett's avatar Adrian Rollett Committed by Wolfgang Ziegler
Browse files

Issue #1548474 by acrollet | refineo: Fixed Long rule names are mishandled.

parent b0683fc1
No related branches found
Tags 8.x-1.0-alpha4 8.x-1.0-beta1
No related merge requests found
......@@ -430,7 +430,9 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface {
$form['settings']['name'] = array(
'#type' => 'machine_name',
'#default_value' => isset($machine_name) ? $machine_name : '',
'#maxlength' => 64,
// The string 'rules_' is pre-pended to machine names, so the
// maxlength must be less than the field length of 64 characters.
'#maxlength' => 58,
'#disabled' => entity_has_status('rules_config', $this->element, ENTITY_IN_CODE) && !(isset($form_state['op']) && $form_state['op'] == 'clone'),
'#machine_name' => array(
'exists' => 'rules_config_load',
......
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