37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
|
|
<?php
|
||
|
|
/*+***********************************************************************************
|
||
|
|
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||
|
|
* ("License"); You may not use this file except in compliance with the License
|
||
|
|
* The Original Code is: vtiger CRM Open Source
|
||
|
|
* The Initial Developer of the Original Code is vtiger.
|
||
|
|
* All Rights Reserved.
|
||
|
|
*************************************************************************************/
|
||
|
|
|
||
|
|
class Documents_Save_Action extends Vtiger_Save_Action {
|
||
|
|
|
||
|
|
public function process(Vtiger_Request $request) {
|
||
|
|
// Логируем начало процесса
|
||
|
|
error_log("=== Documents Save Action Started ===");
|
||
|
|
error_log("REQUEST_URI: " . $_SERVER['REQUEST_URI']);
|
||
|
|
error_log("REQUEST_METHOD: " . $_SERVER['REQUEST_METHOD']);
|
||
|
|
error_log("FILES: " . print_r($_FILES, true));
|
||
|
|
error_log("POST: " . print_r($_POST, true));
|
||
|
|
|
||
|
|
try {
|
||
|
|
// Вызываем родительский метод
|
||
|
|
parent::process($request);
|
||
|
|
|
||
|
|
error_log("=== Documents Save Action Completed Successfully ===");
|
||
|
|
|
||
|
|
} catch (Exception $e) {
|
||
|
|
error_log("=== Documents Save Action Error ===");
|
||
|
|
error_log("Error: " . $e->getMessage());
|
||
|
|
error_log("File: " . $e->getFile() . " Line: " . $e->getLine());
|
||
|
|
error_log("Trace: " . $e->getTraceAsString());
|
||
|
|
|
||
|
|
throw $e;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
?>
|