mirror of
https://github.com/processwire/processwire.git
synced 2025-08-07 23:38:29 +02:00
Fix issue processwire/processwire-issues#1988
This commit is contained in:
@@ -451,6 +451,8 @@ class FieldtypePageTable extends FieldtypeMulti implements Module, FieldtypeDoes
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function ___wakeupValue(Page $page, Field $field, $value) {
|
public function ___wakeupValue(Page $page, Field $field, $value) {
|
||||||
|
|
||||||
|
if($value && !is_array($value)) $value = array($value);
|
||||||
|
|
||||||
if(!is_array($value) || !wireCount($value) || empty($field->template_id)) {
|
if(!is_array($value) || !wireCount($value) || empty($field->template_id)) {
|
||||||
return $this->getBlankValue($page, $field);
|
return $this->getBlankValue($page, $field);
|
||||||
|
Reference in New Issue
Block a user