Skip to content

Commit

Permalink
Fix cloned entity tree cache (#17012)
Browse files Browse the repository at this point in the history
* Correction sons_cache in clone entity

* Correction sons_cache in clone entity

* Apply suggestions from code review

---------

Co-authored-by: Cédric Anne <cedric.anne@gmail.com>
  • Loading branch information
verdanatech-marcio and cedric-anne committed Apr 30, 2024
1 parent eaf9b59 commit 3774750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Entity.php
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion src/Features/Clonable.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3774750

Please sign in to comment.