Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-3789

[Attribute group] Incorrect notification message while user trying remove an Attribute group which is related with Product type

    XMLWordPrintable

Details

    Description

      Preconditions:

      • Added an Attribute group and based on it an attribute checkbox
      • Added Product type based on Attribute group (with selected an option Used for product variants)
      • Added Product based on Product type

      Steps to reproduce:

      1. Log in to back office.
      2. Go to Product catalog / Attribute groups.
      3. Remove an Attribute group mentioned in preconditions.
      4. Verify displayed notification message.

      Actual result:

      See attached screenshots.

      Incorrect notification message while user trying remove an Attribute group which is related with Product type.

      An exception occurred while executing 'DELETE FROM ibexa_attribute_group WHERE identifier = ?' with params ["att_group"]:
      
      SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`flexcommercemaster42`.`ibexa_attribute_definition_assignment`, CONSTRAINT `ibexa_attribute_definition_assignment_attribute_definition_fk` FOREIGN KEY (`attribute_definition_id`) REFERENCES `i)

      Expected result:

      Correct notification message that Attribute group cannot be removed because is related with a Product type which is used.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bogdan.mazur@ibexa.co Bogdan Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: