mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Fix issue processwire/processwire-issues#1811
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -1073,7 +1073,7 @@ class FieldtypeFile extends FieldtypeMulti implements ConfigurableModule, Fieldt
|
||||
$schema['keys']['created'] = 'index (created)';
|
||||
$schema['keys']['filesize'] = 'index (filesize)'; // 3.0.154+
|
||||
|
||||
if($field->id) {
|
||||
if($field->id && !$field->prevFieldtype) {
|
||||
if($field->flags & Field::flagFieldgroupContext) {
|
||||
$field = $this->wire('fields')->get($field->name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user