Ticket #388 (new defect)

Opened 3 months ago

Last modified 3 months ago

User can manipulate populartags -

Reported by: joerosa Assigned to: nobody
Priority: normal Milestone: 0.9.3
Component: core Version: 0.9.1
Severity: normal Keywords:
Cc: Patch Included: 1
Review Stage: unreviewed

Description

In 'populartags' code selects TAGs using the 'ident' field that is a sequential code generated each time we 'add' or 'edit' a Blog post. However editing an old blog post it generates a new 'ident' without changing its position in the cue for the MySql? query that uses the record ID, and consequently brings it that TAG to the latest blogs.

This allows an user to manipulate the TAG cloud pointing to his/her personal blogs. (We had that case - people are creative)

Changing the field 'ident' to 'ref' and using the clause MAX() in the MySQL query as well as the constraint tagtype='weblog' made an effective solution.

Patch attached

Attachments

templates.patch (0.8 kB) - added by joerosa on 08/15/08 16:09:02.

Change History

08/15/08 16:09:02 changed by joerosa

  • attachment templates.patch added.

08/15/08 16:09:48 changed by joerosa

  • milestone changed from 0.9.1 to 0.9.3.