phpcrmvtiger

Vtiger Custom Module : "Sorry! Attempt to access restricted file."


I have created a test module name Mytest. While saving values from the module, I am getting a blank page and it saying "Sorry! Attempt to access restricted file. " . Do anyone know, why this happening. Any help on this is really appreciating.


Solution

  • In Save.php file, just add a line.

    $focus->column_fields['assigned_user_id'] = '';
    

    before the

    if($_REQUEST['assigntype'] == 'U') {
    $focus->column_fields['assigned_user_id'] = $_REQUEST['assigned_user_id'];
    } elseif($_REQUEST['assigntype'] == 'T') {
    $focus->column_fields['assigned_user_id'] = $_REQUEST['assigned_group_id'];
    }