Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 836594a863 | |||
| 19db7c1093 | |||
| ee55f1ecef | |||
| 0cca55da0c | |||
| ca3d5e7890 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,10 @@
|
||||
{
|
||||
"labels": {
|
||||
"LegalAssistance": "Legal Assistance"
|
||||
},
|
||||
"tabs": {
|
||||
"LegalAssistance": "Legal Assistance"
|
||||
},
|
||||
"fields": {
|
||||
"cLegalAidType": "Legal Aid Type",
|
||||
"cAppointmentDate": "Appointment Date",
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{
|
||||
"labels": {
|
||||
"LegalAssistance": "סיוע משפטי"
|
||||
},
|
||||
"tabs": {
|
||||
"LegalAssistance": "סיוע משפטי"
|
||||
},
|
||||
"fields": {
|
||||
"cLegalAidType": "סוג מינוי סיוע משפטי",
|
||||
"cAppointmentDate": "מועד קבלת המינוי",
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{
|
||||
"labels": {
|
||||
"LegalAssistance": "סיוע משפטי"
|
||||
},
|
||||
"tabs": {
|
||||
"LegalAssistance": "סיוע משפטי"
|
||||
},
|
||||
"fields": {
|
||||
"cLegalAidType": "סוג מינוי סיוע משפטי",
|
||||
"cAppointmentDate": "מועד קבלת המינוי",
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
},
|
||||
"cAidType": {
|
||||
"type": "enum",
|
||||
"options": ["", "הגשת ערעור", "יעוץ והדרכה", "סיוע נוסף ביטוח לאומי", "סיוע נוסף תחום א��ר", "אי מתן סיוע"]
|
||||
"options": ["", "הגשת ערעור", "יעוץ והדרכה", "סיוע נוסף ביטוח לאומי", "סיוע נוסף תחום אחר", "אי מתן סיוע"]
|
||||
},
|
||||
"cUrgencyLevel": {
|
||||
"type": "enum",
|
||||
"options": ["", "רגיל", "דחוף", "��הול"],
|
||||
"options": ["", "רגיל", "דחוף", "בהול"],
|
||||
"displayAsLabel": true,
|
||||
"style": {
|
||||
"רגיל": "default",
|
||||
|
||||
@@ -36,7 +36,7 @@ class DirectAccessReportService
|
||||
$contactName = $contact
|
||||
? ($contact->get('firstName') . ' ' . $contact->get('lastName'))
|
||||
: 'ללא איש קשר';
|
||||
$reportName = "דוח גישה ישיר�� — {$contactName}";
|
||||
$reportName = "דוח גישה ישירה — {$contactName}";
|
||||
|
||||
// Extract legal analysis from nested object
|
||||
$legalAnalysis = $params['legalAnalysis'] ?? [];
|
||||
@@ -52,7 +52,7 @@ class DirectAccessReportService
|
||||
'caseId' => $caseId,
|
||||
'assignedUserId' => $userId,
|
||||
|
||||
// Section ב' �� מהות הסיוע
|
||||
// Section ב' — מהות הסיוע
|
||||
'aidType' => $params['aidType'] ?? null,
|
||||
'urgencyLevel' => $params['urgencyLevel'] ?? null,
|
||||
'appointmentDate' => $this->normalizeDate($params['appointmentDate'] ?? null),
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "LegalAssistance",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.1",
|
||||
"acceptableVersions": [">=8.0.0"],
|
||||
"php": [">=8.1"],
|
||||
"releaseDate": "2026-04-06",
|
||||
|
||||
@@ -24,6 +24,10 @@ class AfterInstall
|
||||
|
||||
$log->info('LegalAssistance: Running AfterInstall...');
|
||||
|
||||
// 0. Ensure custom i18n directories exist for all supported locales
|
||||
$config = $container->getByClass(Config::class);
|
||||
$this->ensureI18nDirectories($config, $log);
|
||||
|
||||
// 1. Deploy ai-gateway plugin files
|
||||
$this->deployPluginFiles($log);
|
||||
|
||||
@@ -42,6 +46,27 @@ class AfterInstall
|
||||
$log->info('LegalAssistance: AfterInstall completed.');
|
||||
}
|
||||
|
||||
private function ensureI18nDirectories(Config $config, Log $log): void
|
||||
{
|
||||
$basePath = 'custom/Espo/Custom/Resources/i18n';
|
||||
|
||||
$language = $config->get('language', 'en_US');
|
||||
|
||||
$locales = array_unique(['en_US', 'fa_IR', 'he_IL', $language]);
|
||||
|
||||
foreach ($locales as $locale) {
|
||||
$dir = $basePath . '/' . $locale;
|
||||
|
||||
if (!is_dir($dir)) {
|
||||
if (mkdir($dir, 0775, true)) {
|
||||
$log->info("LegalAssistance: Created i18n directory: {$dir}");
|
||||
} else {
|
||||
$log->warning("LegalAssistance: Failed to create i18n directory: {$dir}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function deployPluginFiles(Log $log): void
|
||||
{
|
||||
// Source: extension's plugins/ directory (relative to EspoCRM root after install)
|
||||
|
||||
Reference in New Issue
Block a user