<table><tr><td style="">dfaure created this revision.<br />dfaure added a reviewer: dvratil.<br />dfaure requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18709">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The code doing a SQL query was preparing a condition, but wasn't<br />
actually using it. So this was listing all attributes from<br />
ALL tags (instead of the desired one) and the last one would win.</p>

<p>Bug initially detected by zanshin's unittests.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Added a new unittest in tagtest which failed before this fix<br />
(the notification contained the name of the second tag)</p></div></div><br /><div><strong>BRANCH</strong><div><div>2019_01_aggregatedfetchscope_test</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18709">https://phabricator.kde.org/D18709</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/libs/tagtest.cpp<br />
src/server/handlerhelper.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, dvratil<br /><strong>Cc: </strong>ervin, kde-pim<br /></div>