containers as index 'documents'

Bug #101558 reported by Andy Altepeter
4
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Medium
Sylvain Viollon

Bug Description

If you add a folder (or presumably a publication) with id of 'index' (the index
document of a container), it appears twice, once in the '0' location, and once
in it's real location. My first thought was to suggest raising this as an
error, but someone may have an index container that is a gallery (containing
images), so that one would make sense. Unless there was an "allow_as_index"
function...

Tags: silva-1.6
Revision history for this message
Kit Blake (kitblake) wrote :

I noticed on a site where 'index' is a Ghost Folder. Somewhat dangerous, as I
almost deleted the 'second' one.

Kit Blake (kitblake)
Changed in silva:
importance: Medium → Undecided
Revision history for this message
Sylvain Viollon (thefunny) wrote :

- The name chooser should not permit to pick index as an id for a container

- get_default method should pay attention not to return a container.

Those cases should be tested.

Changed in silva:
assignee: nobody → Sylvain Viollon (thefunny)
importance: Undecided → Medium
milestone: none → 3.0.2
Revision history for this message
Sylvain Viollon (thefunny) wrote :

This is fixed.

Changed in silva:
status: Confirmed → Fix Committed
Changed in silva:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.