From c106282b131d585783dcc2627cc631abd7e05f4e Mon Sep 17 00:00:00 2001
From: OpenXE <>
Date: Tue, 7 Nov 2023 09:57:59 +0100
Subject: [PATCH] bugfix copy projekt
---
www/pages/projekt.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/pages/projekt.php b/www/pages/projekt.php
index 4c4ef59c..0ce13276 100644
--- a/www/pages/projekt.php
+++ b/www/pages/projekt.php
@@ -2727,6 +2727,8 @@ class Projekt extends GenProjekt {
if($oldProjectId > 0){
$this->createAdditionalInputForCopyProjects($oldProjectId,$check);
+ $msg = $this->app->erp->base64_url_encode("
Das Projekt wurde erfolgreich kopiert.
");
+ $this->app->Location->execute("index.php?module=projekt&action=uebersicht&id=$check&msg=$msg");
return;
}
$msg = $this->app->erp->base64_url_encode("Das Projekt wurde erfolgreich angelegt.
");
@@ -2848,7 +2850,7 @@ class Projekt extends GenProjekt {
* @param int $copyProjectId
* @return bool
*/
- public function createAdditionalInputForCopyProjects(int $oldProjectId, int $copyProjectId): bool
+ public function createAdditionalInputForCopyProjects(int $oldProjectId, int $copyProjectId)
{
$hasAdditionalInput = false;
$this->app->Tpl->Set('TOID',$copyProjectId);