1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 09:14:58 +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;
}

View File

@@ -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