WSOD after saving new rule

Created on 24 June 2025, about 1 month ago

Problem/Motivation

After clicking "save" on the rule creation form, WSOD due to route parameter "example" not provided.

Steps to reproduce

1. Install the module
2. Create a rule. Fill in all necessary values. The specific values do not matter.
3. Try to save the new rule.

Proposed resolution

This is caused by placeholder entity links generated by DCG in the entity class annotation not being correctly populated.
The values:

/**
 *   links = {
 *     "edit-form" = "/admin/commerce/config/products/commerce_cart_skip/{example}",
 *     "delete-form" = "/admin/commerce/config/products/commerce_cart_skip/{example}/delete",
 *   }
 */

should be

/**
 *   links = {
 *     "edit-form" = "/admin/commerce/config/products/commerce_cart_skip/{commerce_cart_skip_rule}",
 *     "delete-form" = "/admin/commerce/config/products/commerce_cart_skip/{commerce_cart_skip_rule}/delete",
 *   }
 */

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

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

Comments & Activities

Production build 0.71.5 2024