- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
57 lines
2.2 KiB
PHP
57 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
This File was developed by Stefan Warnat <vtiger@stefanwarnat.de>
|
|
|
|
It belongs to the Workflow Designer and must not be distributed without complete extension
|
|
|
|
* Last Change: 2012-12-06 1.6 swarnat
|
|
**/
|
|
|
|
require_once(realpath(dirname(__FILE__).'/../autoload_wf.php'));
|
|
require_once('WfTaskCustomCreator.php');
|
|
|
|
class WfTaskTaskCreator extends WfTaskCustomCreator
|
|
{
|
|
protected $_fields = array("subject", "description", "taskstatus", "taskpriority", "date_start", "time_start", "due_date", "sendnotification", "assigned_user_id");
|
|
protected $_customModule = "Calendar";
|
|
protected $_activityType = 'Task';
|
|
|
|
protected $_hiddenValues = array("activitytype" => "Task");
|
|
|
|
public function beforeGetTaskform($viewer) {
|
|
global $adb, $vtiger_current_version;
|
|
|
|
// I have to respect Users timezone
|
|
$setter = $this->get("setter");
|
|
|
|
if(version_compare($vtiger_current_version, '5.3.0', '>=')) {
|
|
if(!empty($setter) && is_array($setter)) {
|
|
foreach($setter as $key => $field) {
|
|
if(strpos($field["value"], "$") === false && strpos($field["value"], "?") === false && ($field["field"] == "time_start" || $field["field"] == "time_end")) {
|
|
$date = DateTimeField::convertToUserTimeZone(date("Y-m-d")." ".$field["value"]);
|
|
$setter[$key]["value"] = $date->format("H:i");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$this->set("setter", $setter);
|
|
|
|
parent::beforeGetTaskform($viewer);
|
|
}
|
|
|
|
public function beforeSave(&$values) {
|
|
global $adb, $vtiger_current_version;
|
|
|
|
if(version_compare($vtiger_current_version, '5.3.0', '>=')) {
|
|
foreach($values["setter"] as $key => $field) {
|
|
// I have to respect Users timezone
|
|
if(strpos($field["value"], "$") === false && strpos($field["value"], "?") === false && ($field["field"] == "time_start" || $field["field"] == "time_end")) {
|
|
$date = DateTimeField::convertToDBTimeZone(date("Y-m-d")." ".$field["value"]);
|
|
$values["setter"][$key]["value"] = date("H:i", $date->format('U'));
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|