1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00
This commit is contained in:
Ryan Cramer
2022-05-20 10:49:51 -04:00
parent c686a8e5ea
commit c84a21a9a2
2 changed files with 5 additions and 2 deletions

View File

@@ -477,7 +477,10 @@ class Fields extends WireSaveableItems {
/** @var Field $item */
$item = parent::___clone($item, $name);
if($item) $item->prevTable = null;
if($item) {
$item->prevTable = null;
$item->prevName = ''; // prevent renamed hook
}
return $item;
}