Changes between Version 6 and Version 10 of Ticket #35551
- Timestamp:
- Jun 26, 2024, 11:27:56 AM (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35551
- Property Has patch set
- Property Summary Unique checks skipped when changing primary key → Fix changing PK via admin
-
Ticket #35551 – Description
v6 v10 1 I noticed the unique checks are skipped ({{{_perform_unique_checks}}}) when an object's primary key is changed.1 I have noticed two bugs when changing the primary key field via admin. 2 2 3 3 Given: … … 14 14 1. Create Dummy (1), Dummy (2). 15 15 2. Change Dummy (2)'s Id field -> 1 16 3. No error, unique checks skipped16 3. Dummy (1) is overwritten with Dummy (2), Dummy(2) stays unchanged. 17 17 4. Change Dummy (1)'s Id field -> 3 18 5. A new Dummy (3) is created, Dummy (1) stays unchanged 18 5. A new Dummy (3) is created, Dummy (1) stays unchanged. 19 19 20 I believe step 5 should never happen, since step 3 should fail with a unique check error.20 I believe both step 3 and step 5 are bugs.