mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 08:44:46 +02:00
Fix issue processwire/processwire-issues#1509
This commit is contained in:
@@ -266,7 +266,7 @@ class FieldtypePageTable extends FieldtypeMulti implements Module {
|
|||||||
/**
|
/**
|
||||||
* Get the match query for page selection, delegated to FieldtypePage
|
* Get the match query for page selection, delegated to FieldtypePage
|
||||||
*
|
*
|
||||||
* @param DatabaseQuerySelect $query
|
* @param DatabaseQuerySelect|PageFinderDatabaseQuerySelect $query
|
||||||
* @param string $table
|
* @param string $table
|
||||||
* @param string $subfield
|
* @param string $subfield
|
||||||
* @param string $operator
|
* @param string $operator
|
||||||
@@ -470,7 +470,7 @@ class FieldtypePageTable extends FieldtypeMulti implements Module {
|
|||||||
*/
|
*/
|
||||||
public function ___exportConfigData(Field $field, array $data) {
|
public function ___exportConfigData(Field $field, array $data) {
|
||||||
$data = $this->wire('fieldtypes')->get('FieldtypePage')->exportConfigData($field, $data);
|
$data = $this->wire('fieldtypes')->get('FieldtypePage')->exportConfigData($field, $data);
|
||||||
if(is_array($data['template_id'])) {
|
if(isset($data['template_id']) && is_array($data['template_id'])) {
|
||||||
// convert template IDs to names
|
// convert template IDs to names
|
||||||
$names = array();
|
$names = array();
|
||||||
foreach($data['template_id'] as $id) {
|
foreach($data['template_id'] as $id) {
|
||||||
|
Reference in New Issue
Block a user