Details
-
Bug
-
Resolution: Fixed
-
High
-
1.7.3
-
None
Description
Creating content in the Media Library automatically sets the section to Media (3).
When this content is then moved to the Content tree (Standard section) then the section field in the ezcontentobject table is not updated to reflect this change.
If the content is only accessible by the frontend user (eg. Anonymous) when it is in the Standard section then after the above move scenario the user will be redirected to the login page as they do not have access.
Update (eZ Support):
Steps to reproduce:
- Login to the admin interface;
- Create a new content in Media library: Media / Images / test.jpg (image, content_id: 56)
- Check 'ezcontentobject' table:
SELECT * FROM ezcontentobject WHERE id = 56; +-----------------+-----------------+----+---------------------+---------------+------------+----------+----------+------------+----------------------------------+------------+--------+ | contentclass_id | current_version | id | initial_language_id | language_mask | modified | name | owner_id | published | remote_id | section_id | status | +-----------------+-----------------+----+---------------------+---------------+------------+----------+----------+------------+----------------------------------+------------+--------+ | 5 | 1 | 56 | 2 | 3 | 1497972905 | test.jpg | 14 | 1497972905 | 1669a276418c7557ce7a7f8ef9d0d37e | 3 | 1 | +-----------------+-----------------+----+---------------------+---------------+------------+----------+----------+------------+----------------------------------+------------+--------+ 1 row in set (0,00 sec)
- On the admin interface, move the content from Media library to the Content tree: Home / Tests / test.jpg
- Check 'ezcontentobject' table again:
SELECT * FROM ezcontentobject WHERE id = 56; +-----------------+-----------------+----+---------------------+---------------+------------+----------+----------+------------+----------------------------------+------------+--------+ | contentclass_id | current_version | id | initial_language_id | language_mask | modified | name | owner_id | published | remote_id | section_id | status | +-----------------+-----------------+----+---------------------+---------------+------------+----------+----------+------------+----------------------------------+------------+--------+ | 5 | 1 | 56 | 2 | 3 | 1497972905 | test.jpg | 14 | 1497972905 | 1669a276418c7557ce7a7f8ef9d0d37e | 3 | 1 | +-----------------+-----------------+----+---------------------+---------------+------------+----------+----------+------------+----------------------------------+------------+--------+ 1 row in set (0,00 sec)
- Notice that 'ezcontentobject.section_id' hasn't been updated to reflect the new section to which the content now belongs to - "standard", which has an id = 1;
Attachments
Issue Links
- testing discovered
-
EZP-27649 Documentation on Section assignment should be updated
- Closed