Skip to content
Snippets Groups Projects
Commit 9b5c5338 authored by Prasad's avatar Prasad
Browse files

Sanitized value before insertion to table.

parent 2d1a1ae4
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ class Activity extends CRMEntity {
$this->deleteRelation("vtiger_seactivityrel");
}
$recordId = $this->id;
$recordId = intval($this->id);
if(isset($_REQUEST['contactidlist']) && $_REQUEST['contactidlist'] != '') {
$adb->pquery( 'DELETE from vtiger_cntactivityrel WHERE activityid = ?', array($recordId));
......@@ -130,6 +130,7 @@ class Activity extends CRMEntity {
$sql = 'INSERT INTO vtiger_cntactivityrel VALUES ';
for($i=0; $i<$count; $i++) {
$contactIdsList[$i] = intval($contactIdsList[$i]);
$sql .= " ($contactIdsList[$i], $recordId)";
if ($i != $count - 1) {
$sql .= ',';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment