Skip to content

vt74 - Todo fails to save when related to Contact with no Organisation

Create a Contact that is NOT related to an Organisation. When viewing the Contact summary view click to create a new To Do, and click full form. (onl;y happens with full form, NOT if using quick create)

Enter mandatory fields, then save - error message states that record cannot be accessed. This is because it did not get saved.

The solution is to edit /modules/Vtiger/views/Edit.php and in the process() function on line 114 add an extra if

    $requestFieldList['parent_id'] = $contactRecordModel->get('account_id');
}````
Edited by Apparao G