You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/Installer.xtend
$this->addFlash('error', $this->__f('Error! Could not create a category registry for the %entity% entity.', ['%entity%'=>'«entity.name.formatForDisplay»']));
125
+
$logger->error('{app}: User {user} could not create a category registry for {entities} during installation. Error details: {errorMessage}.', ['app'=>'«appName»', 'user'=> $userName, 'entities'=>'«entity.nameMultiple.formatForDisplay»', 'errorMessage'=> $exception->getMessage()]);
Copy file name to clipboardExpand all lines: bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/additions/AjaxController.xtend
+42-40Lines changed: 42 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -466,10 +466,11 @@ class AjaxController {
466
466
return «IF targets('2.0')»$this->json«ELSE»newJsonResponse«ENDIF»($this->__('No such item.'), JsonResponse::HTTP_NOT_FOUND);
Copy file name to clipboardExpand all lines: bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/helper/HookHelper.xtend
Copy file name to clipboardExpand all lines: bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/helper/TranslatableHelper.xtend
Copy file name to clipboardExpand all lines: bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/zclassic/controller/helper/WorkflowHelper.xtend
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -404,13 +404,13 @@ class WorkflowHelper {
404
404
try {
405
405
$workflow->apply($entity, $actionId);
406
406
407
-
$entityManager->transactional(function($entityManager) use ($actionId) {
408
-
if ($actionId =='delete') {
409
-
$entityManager->remove($entity);
410
-
} else {
411
-
$entityManager->persist($entity);
412
-
}
413
-
});
407
+
if($actionId=='delete') {
408
+
$entityManager->remove($entity);
409
+
} else {
410
+
$entityManager->persist($entity);
411
+
}
412
+
$entityManager->flush();
413
+
414
414
$result =true;
415
415
if ($actionId =='delete') {
416
416
$this->logger->notice('{app}: User {user} deleted an entity.', $logArgs);
0 commit comments