View Issue Details

IDProjectCategoryView StatusLast Update
0002354HTML & PERLBug Report - Interfacepublic2016-03-11 21:37
ReporterHinoe Assigned ToDerIdiot  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0002354: Tag admin, entities mode: entity row gets restricted class even though it isn't a 18+ entity.
DescriptionIn the tag admin page, entities mode, entity rows had the restricted class on them even though the entities weren't 18+.

This issue showed up when I was removing a 18+-only tag from non-18+ entities, using the following link (it should currently be empty, but see steps to reproduce):

http://anidb.net/perl-bin/animedb.pl?show=admin&adm=tags&mode=tagentities&reltb=animetb&tagid=2715&hentities=1

In the situation described, all 7 results I had at the time had the restricted class on them.
Steps To ReproduceAdd t2715, which has the global 18+ flag and the is_porn_only flag on anime, to a non-18+ anime. This will ensure results for step 2.

Look at http://anidb.net/perl-bin/animedb.pl?show=admin&adm=tags&mode=tagentities&reltb=animetb&tagid=2715&hentities=1

Verify the restricted class in the row.
Additional InformationI believe the entity rows are taking the restricted class if the tag has tagdatatb restricted flag set to true, as opposed to the entity's own.

I don't know whether the entity's own restricted flag plays any role on this. This may or may not depend on the specific tag system and on the specific combination of the statuses of the tag's and the entity's respective restricted flags.

An alternative theory is that it depends instead on the tag system's is_porn_only and is_general_only flags instead of the tag's restricted flag, or in addition to it.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2015-10-03 17:16 Hinoe New Issue
2016-02-13 18:31 DerIdiot Status new => resolved
2016-02-13 18:31 DerIdiot Resolution open => fixed
2016-02-13 18:31 DerIdiot Assigned To => DerIdiot