Changes between Version 6 and Version 10 of Ticket #35551


Ignore:
Timestamp:
Jun 26, 2024, 11:27:56 AM (5 months ago)
Author:
Csirmaz Bendegúz
Comment:

I edited the ticket to reflect my findings.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35551

    • Property Has patch set
    • Property Summary Unique checks skipped when changing primary keyFix 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.
     1I have noticed two bugs when changing the primary key field via admin.
    22
    33Given:
     
    14141. Create Dummy (1), Dummy (2).
    15152. Change Dummy (2)'s Id field -> 1
    16 3. No error, unique checks skipped
     163. Dummy (1) is overwritten with Dummy (2), Dummy(2) stays unchanged.
    17174. Change Dummy (1)'s Id field -> 3
    18 5. A new Dummy (3) is created, Dummy (1) stays unchanged
     185. A new Dummy (3) is created, Dummy (1) stays unchanged.
    1919
    20 I believe step 5 should never happen, since step 3 should fail with a unique check error.
     20I believe both step 3 and step 5 are bugs.
Back to Top