[Vtigercrm-commits] [vtiger development] #5307: Campaign Related Getting Lost
vtiger development
vtiger-tickets at trac.vtiger.com
Thu Jul 17 02:27:21 EDT 2008
#5307: Campaign Related Getting Lost
------------------------+---------------------------------------------------
Reporter: prasad | Owner: developer
Type: defect | Status: new
Priority: major | Milestone: 5.1.0
Component: vtigercrm | Version: 5.0.4
Resolution: | Keywords:
------------------------+---------------------------------------------------
Old description:
> I create a campaign "Mailing 1". Then I load a list of (view) from
> contacts:
>
> - If there were any contacts with same lastname only one of them will be
> stored
> - If I use the same list on another campaign (lets say "Mailing 2"), all
> entries on "Mailing 1" will be deleted.
New description:
I create a campaign "Mailing 1". Then I load a list of (view) from
contacts:
- If there were any contacts with same lastname only one of them will be
stored
- If I use the same list on another campaign (lets say "Mailing 2"), all
entries on "Mailing 1" will be deleted.
Comment (by prasad):
The problem is more likely to be due to the DELETE SQL in use.
In the file modules/Campaigns/LoadList.php @ ~line 32
Replace:
{{{
$sql = "delete from $reltable where $relid = ?";
$adb->pquery($sql, array($row["crmid"]));
}}}
With:
{{{
$sql = "delete from $reltable where $relid = ? and campaignid=?";
$adb->pquery($sql, array($row["crmid"],$_REQUEST["return_id"]));
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5307#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list