mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +02:00
Correct an issue in Repeater that interfered with some file-upload situations in draft page versions
This commit is contained in:
@@ -416,6 +416,11 @@ class FieldtypePageTable extends FieldtypeMulti implements Module {
|
|||||||
if(count($sorts)) $items->sort($sorts);
|
if(count($sorts)) $items->sort($sorts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach($items as $item) {
|
||||||
|
$item->setQuietly('_pageTableField', $field->id);
|
||||||
|
$item->setQuietly('_pageTableParent', $page->id);
|
||||||
|
}
|
||||||
|
|
||||||
return $items;
|
return $items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -112,11 +112,12 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
|||||||
/** @var FieldtypeRepeater $fieldtype */
|
/** @var FieldtypeRepeater $fieldtype */
|
||||||
$template = $fieldtype->getRepeaterTemplate($field);
|
$template = $fieldtype->getRepeaterTemplate($field);
|
||||||
if(!$template) continue;
|
if(!$template) continue;
|
||||||
if(__NAMESPACE__) {
|
$class = $fieldtype->getPageClass();
|
||||||
$template->setQuietly('pageClass', wireClassName($fieldtype->getPageClass()));
|
if(__NAMESPACE__ && $class) $class = wireClassName($class);
|
||||||
} else {
|
$_class = $template->get('pageClass');
|
||||||
$template->setQuietly('pageClass', $fieldtype->getPageClass());
|
if($class === $_class) continue;
|
||||||
}
|
$template->set('pageClass', $class);
|
||||||
|
$template->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->wire('page')->process == 'ProcessPageEdit') {
|
if($this->wire('page')->process == 'ProcessPageEdit') {
|
||||||
|
Reference in New Issue
Block a user