Automators: "Edit when changed" ignored in "Advanced Mode (Token)"
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3508503. --> Reported by: [ragnarkurm](https://www.drupal.org/user/431209) Related to !1301 !1368 !1494 !1367 !729 !478 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>"Edit when changed" is ignored in "Advanced Mode (Token)" for the Automator module.<br> When content is saved, the automated field value does not update when it already contains a value even if "Edit when changed" is checked.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Create a text field to a content type.</li> <li>Enable AI Automator (assumes the module is installed, and provider is being set up)</li> <li>Set: Advanced Mode (Token)</li> <li>Check: Edit when changed</li> <li>Edit prompt to generate a random result</li> <li>Configure other relevant fields to see immediate results </li> <li>Save</li> <li>Create a node with the automated field</li> <li>Make sure the value is populated</li> <li>Save node again</li> <li>The value is the same! But we expected subsequent saving to change the value because the prompt generates a random value and "Edit when changed" is checked.</li> </ol> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>See if "Edit when changed" is checked when saving in Advanced Mode.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Merge the patch.</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>None.</p> <h3 id="summary-api-changes">API changes</h3> <p>None.</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>None.</p> > Related issue: [Issue #3566583](https://www.drupal.org/node/3566583) > Related issue: [Issue #3483462](https://www.drupal.org/node/3483462)
issue