Add localization files and layout configurations for CAkten and related entities
- Created localization JSON files for multiple languages (e.g., Danish, German, Greek, English, Spanish, etc.) for CAkten and CAktenCDokumente. - Added layout configurations for CAkten, including detail views, side panels, and bottom panels. - Implemented metadata definitions for CAkten, including field definitions, relationship panels, and scopes. - Introduced new JSON files for managing document relationships and listing configurations.
This commit is contained in:
@@ -47,7 +47,7 @@ class PropagateDocuments implements AfterRelate, AfterUnrelate
|
||||
|
||||
// Set direct belongsTo relationship on document
|
||||
if ($advowareAkten) {
|
||||
$foreignEntity->set('cAdvowareAktenId', $advowareAkten->getId());
|
||||
$foreignEntity->set('cAktenId', $advowareAkten->getId());
|
||||
$foreignEntity->set('syncStatus', 'new'); // Mark as new for Advoware sync
|
||||
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
|
||||
}
|
||||
@@ -96,8 +96,8 @@ class PropagateDocuments implements AfterRelate, AfterUnrelate
|
||||
->findOne();
|
||||
|
||||
// Remove direct belongsTo relationship from document
|
||||
if ($advowareAkten && $foreignEntity->get('cAdvowareAktenId') === $advowareAkten->getId()) {
|
||||
$foreignEntity->set('cAdvowareAktenId', null);
|
||||
if ($advowareAkten && $foreignEntity->get('cAktenId') === $advowareAkten->getId()) {
|
||||
$foreignEntity->set('cAktenId', null);
|
||||
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user