1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 08:44:46 +02:00
This commit is contained in:
Ryan Cramer
2022-01-24 10:36:43 -05:00
parent d30f584190
commit beaad6e8dd

View File

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