Issue #3500732 by mysdiir: Action that combines two lists.
Closes #3500732
Merge request reports
Activity
This is just a first scaffolding, I'm running into a few issues (s. comments) for which I need some help :).
Edited by mysdiir
46 $form['list_token_left'] = [ 47 '#type' => 'textfield', 48 '#title' => $this->t('Name of first list'), 49 '#description' => $this->t('The name of the first list that should be combined into a new one.'), 50 '#default_value' => $this->configuration['list_token_left'], 51 ]; 52 $form['list_token_right'] = [ 53 '#type' => 'textfield', 54 '#title' => $this->t('Name of second list'), 55 '#description' => $this->t('The name of the second list that should be combined into a new one.'), 56 '#default_value' => $this->configuration['list_token_right'], 57 ]; 58 59 $debug = 1; 60 61 return $form; Within the bpmn_io modeller the inputted values into
$form['list_token_left']
and$form['list_token_right']
won't get saved when clicking into another element outside this action. The 'normal' eca behaviour is that even without saving, the inputted values still persist, this is not happening in my case.There are no errors in my browsers console or new log messages in recent log messages.
I can't reproduce any problem with this. Should all be fine, unless you're keeping an action in a model, then change the config form. That doesn't work. You need to remove the action from the model and add it again, if it comes with a changed config form. Or you run
drush eca:update
which updates the model data to cover the current config form defintions.
47 '#type' => 'textfield', 48 '#title' => $this->t('Name of first list'), 49 '#description' => $this->t('The name of the first list that should be combined into a new one.'), 50 '#default_value' => $this->configuration['list_token_left'], 51 ]; 52 $form['list_token_right'] = [ 53 '#type' => 'textfield', 54 '#title' => $this->t('Name of second list'), 55 '#description' => $this->t('The name of the second list that should be combined into a new one.'), 56 '#default_value' => $this->configuration['list_token_right'], 57 ]; 58 59 $debug = 1; 60 61 return $form; 62 } added 1 commit
added 1 commit
- Resolved by mysdiir
- Resolved by mysdiir
- Resolved by mysdiir
- Resolved by mysdiir
Thanks for your replies as a first review. Those are valuable lessons for me :).
I wonder how you evaluate the approach of the isEqual() method along with its implementation and general idea? If I'd appreciate some feedback about this :).
added 1 commit
- Resolved by mysdiir