ikajaste/Joomla-2.5-Asset-Weaver — Issue #3: Better root object check
Author: ikajaste
Created: 2012-02-29 19:11:18+00:00
State: open

Currently the system accepts as root object any asset that has no parent. However, according to http://docs.joomla.org/Fixing_the_assets_table

> The root should be in record 1 and have a parent_id of 0 and a level 0

The code should check for this object in the beginning, create it if doesn't exist (or search for title="root.1" and set proper values for it), and at the end validate that it's the only one with parent_id 0, and level 0.