mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Fix issue processwire/processwire-issues#1568
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user