Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.4.5
-
None
Description
Steps to reproduce:
1. Create a new article, fill in all necessary details;
2. Add an HTTP link on the "body" field e.g. http://partner1.com/;
3. Verify that a new record was created in the 'ezurl_object_link' DB table for the new article link:
+----------------------------+---------------------------------+--------+ | contentobject_attribute_id | contentobject_attribute_version | url_id | +----------------------------+---------------------------------+--------+ | 669 | 1 | 67 | +----------------------------+---------------------------------+--------+
4. Edit the article, add a new HTTP link on the "body" field e.g. http://partner2.com/, and store as draft;
5. There will be following records in the 'ezurl_object_link' table at this stage:
+----------------------------+---------------------------------+--------+ | contentobject_attribute_id | contentobject_attribute_version | url_id | +----------------------------+---------------------------------+--------+ | 669 | 1 | 67 | | 669 | 2 | 67 | | 669 | 2 | 68 | +----------------------------+---------------------------------+--------+
...which is correct.
6. Edit the draft, remove link 1 e.g. http://partner1.com/ and publish;
7. After this, 'ezurl_object_link' should have these records:
+----------------------------+---------------------------------+--------+ | contentobject_attribute_id | contentobject_attribute_version | url_id | +----------------------------+---------------------------------+--------+ | 669 | 1 | 67 | | 669 | 2 | 68 | +----------------------------+---------------------------------+--------+
Instead, it has these:
+----------------------------+---------------------------------+--------+ | contentobject_attribute_id | contentobject_attribute_version | url_id | +----------------------------+---------------------------------+--------+ | 669 | 1 | 67 | | 669 | 2 | 67 | | 669 | 2 | 68 | +----------------------------+---------------------------------+--------+
There should not be URL#67 for Version#2 because it was removed on step #6.
Attachments
Issue Links
- relates to
-
EZP-25419 Object links are not updated in 'ezurl_object_link' table
- Closed