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
CompanyDirectory not deleting
Re: CompanyDirectory not deleting
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));
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));
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: CompanyDirectory not deleting
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.
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.