diff --git a/src/Entity.php b/src/Entity.php index d3f527d49eb..c62815b7b53 100644 --- a/src/Entity.php +++ b/src/Entity.php @@ -329,7 +329,6 @@ public function prepareInputForAdd($input) { /** @var \DBmysql $DB */ global $DB; - $input['name'] = isset($input['name']) ? trim($input['name']) : ''; if (empty($input["name"])) { Session::addMessageAfterRedirect( diff --git a/src/Features/Clonable.php b/src/Features/Clonable.php index ef175440a6e..fb2b063f015 100644 --- a/src/Features/Clonable.php +++ b/src/Features/Clonable.php @@ -76,7 +76,8 @@ private function cleanCloneInput(array $input): array 'date_mod', 'date_creation', 'template_name', - 'is_template' + 'is_template', + 'sons_cache', ]; foreach ($properties_to_clean as $property) { if (array_key_exists($property, $input)) {