1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 17:54:44 +02:00
This commit is contained in:
Ryan Cramer
2023-09-15 14:27:17 -04:00
parent b0414278f8
commit dd8f2a5c63
2 changed files with 2 additions and 1 deletions

View File

@@ -658,6 +658,7 @@ class Fields extends WireSaveableItems {
$field2->flags = 0; // intentional overwrite after above line
}
$field2->name = $field2->name . "_PWTMP";
$field2->prevFieldtype = $field1->type;
$field2->type->createField($field2);
$field1->type = $field1->prevFieldtype;