mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 01:04:16 +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;
|
||||
}
|
||||
|
@@ -2116,7 +2116,7 @@ class ProcessField extends Process implements ConfigurableModule {
|
||||
if(!$field) return false;
|
||||
|
||||
$field->label = $field->label . ' ' . $this->_('(copy)');
|
||||
$this->message($this->_('Cloned Field') . " - $field->name => $cloneField->name");
|
||||
$this->message($this->_('Cloned Field') . " - $cloneField->name => $field->name");
|
||||
|
||||
if($field->type instanceof FieldtypeFieldsetOpen && strpos($cloneField->name, '_END') === false) {
|
||||
// handle a cloned fieldset by also cloning its closer
|
||||
|
Reference in New Issue
Block a user