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:
@@ -30,12 +30,12 @@ class UpdateJunctionSyncStatus implements AfterSave
|
||||
try {
|
||||
// Set syncStatus = 'unclean' directly on CDokumente entity
|
||||
// (only if it has an AdvowareAkte linked)
|
||||
if ($entity->get('cAdvowareAktenId')) {
|
||||
if ($entity->get('cAktenId')) {
|
||||
$entity->set('syncStatus', 'unclean');
|
||||
$this->entityManager->saveEntity($entity, ['silent' => true, 'skipHooks' => true]);
|
||||
|
||||
// Trigger parent AdvowareAkte update (will update syncStatus and lastSync via its own hook)
|
||||
$akte = $this->entityManager->getEntityById('CAdvowareAkten', $entity->get('cAdvowareAktenId'));
|
||||
$akte = $this->entityManager->getEntityById('CAkten', $entity->get('cAktenId'));
|
||||
if ($akte) {
|
||||
// Just touch the entity to trigger beforeSave hook
|
||||
$this->entityManager->saveEntity($akte, ['silent' => true]);
|
||||
|
||||
Reference in New Issue
Block a user