After editing a content, it does not appear in the “Recently modified contents” dashboard widget.
The issue can be reproduced both on the online demo and on the nightly build.
Steps to reproduce
Log in to the back office.
Edit a content.
Save the changes.
Go back to the dashboard.
Check the “Recently modified contents” widget.
Expected result
The recently modified content should appear in the dashboard among the contents last modified by the current user, provided it matches the widget criteria.
According to the current implementation, the generated query looks for contents:
in workflow states 1, 2, or 3;
for which the current user is the last contributor;
matching the current site, language, and allowed content types;
ordered by the last modification date in descending order.
Actual result
The widget remains empty, even immediately after editing a content.
Analysis
The generated JCR query does not return any result.
The query contains the following condition to filter contents by their last contributor:
ametys-internal:contributor/@ametys-internal:login = 'raf'
Even a simplified query using this condition returns no content:
//element(*, ametys:content)[ametys-internal:contributor/@ametys-internal:login='raf']
The issue seems to come from the JCR path used for the contributor login.
Using:
ametys-internal:contributor/@ametys:login = 'xxx'
instead of:
ametys-internal:contributor/@ametys-internal:login = 'xxx'
appears to be the expected syntax.
Impact
The “Recently modified contents” dashboard widget does not display the contents modified by the current user.