You can only clone a reaction rule once!

Created on 25 February 2022, over 2 years ago
Updated 2 July 2024, 5 months ago

Problem/Motivation

I am trying to make multiple clones of the reaction rule "New article created".

First time I clone "New Article created" Drupal creates clone with machine name "new_article_created_clone" which works as expected.

Second time I clone "New Article created" I get a white screen and error:

Type	php
Date	Friday, February 25, 2022 - 16:18
User	user1
Location	http://latest.syntapse.co.uk/admin/config/workflow/rules/reactions/clone/new_article_created?token=GAOJQ1zndt8JQXJBck3QOb569tR-ifYjsaSnV53t2Xo
Referrer	https://latest.syntapse.co.uk/admin/config/workflow/rules
Message	Drupal\Core\Entity\EntityStorageException: 'rules_reaction_rule' entity with ID 'new_article_created_clone' already exists. in Drupal\Core\Entity\EntityStorageBase->doPreSave() (line 557 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Severity	Error
Hostname	172.28.2.1
Operations	

Steps to reproduce

See above.

Proposed resolution

Could simplest solution to allow alteration of machine name during cloning rather than check automatically?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Reaction Rules

Created by

πŸ‡¬πŸ‡§United Kingdom Syntapse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024