CompanyDirectory not deleting

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
clintnelson
New Member
New Member
Posts: 3
Joined: Mon Aug 18, 2008 5:18 am

CompanyDirectory not deleting

Post by clintnelson »

Hi,

I'm using CMSMS 1.5.1 with CompanyDirectory 1.1.6 and when I delete a company it removes the entry from the cms_module_compdir_companies table but doesn't remove the corresponding entry from cms_module_compdir_company_categories as is called from action.deletecompany.php

I had this issue with 1.4.1 as well.

Is there any known issue with this?

Thanks
Clint
Eliban
New Member
New Member
Posts: 3
Joined: Mon Jan 12, 2009 7:35 pm

Re: CompanyDirectory not deleting

Post by Eliban »

you have to edit "action.deletecompany.php"

FIND:
//And remove it from any entries
$query = "DELETE FROM module_compdir_fieldvals WHERE company_id = ?";
$db->Execute($query, array($compid));

//And remove it from any categories
$query = "DELETE FROM module_compdir_company_categories WHERE company_id = ?";
$db->Execute($query, array($compid));


AND CHANGE TO:

//And remove it from any entries
$query = "DELETE FROM ".cms_db_prefix()."module_compdir_fieldvals WHERE company_id = ?";
$db->Execute($query, array($compid));

//And remove it from any categories
$query = "DELETE FROM ".cms_db_prefix()."module_compdir_company_categories WHERE company_id = ?";
$db->Execute($query, array($compid));
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CompanyDirectory not deleting

Post by calguy1000 »

Fixed in SVN.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”