Solonik77 / digitalus-cms

Automatically exported from code.google.com/p/digitalus-cms
0 stars 0 forks source link

when deleting some group of pages, they leave orphanated inputs in the database => FIXED #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create some posts in blog for example
2. delete the blog itself
3.  select id,name,namespace,related_pages,parent_id from digitalus_pages;

What is the expected output? What do you see instead?
deletePageById, delete only when id= and doesn't delete parent_id=, so they
leave orphanted inputs
a solution:

    public function deletePageById($pageId)
    {   

        $this->_flushCache();
        $where[] = $this->_db->quoteInto('id = ?', $pageId);
        $this->delete("id = $pageId OR parent_id = $pageId");
        $this->delete($where);

What version of the product are you using? On what operating system?

svn, ubuntu.

Please provide any additional information below.

Original issue reported on code.google.com by jailb...@gmail.com on 18 Nov 2009 at 5:29

GoogleCodeExporter commented 8 years ago
Hello Javier,

thanks for this report.

I will change the function as described by You as soon as I have time to do it.

Thanks,
LowTower.

Original comment by lowtower1974@gmail.com on 20 Nov 2009 at 10:06

GoogleCodeExporter commented 8 years ago

Original comment by lowtower1974@gmail.com on 25 Nov 2009 at 7:25