1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 11:44:42 +02:00

Fix issue processwire/processwire-issues#484 where PageFrontEdit with <edit field="pageID.fieldName"> tag was not working property.

This commit is contained in:
Ryan Cramer
2018-02-05 05:57:15 -05:00
parent 8e52ee8097
commit e21c965f7b

View File

@@ -492,13 +492,13 @@ class PageFrontEdit extends WireData implements Module {
}
} else if(empty($names)) {
$names = $attr;
}
if(strpos($names, ':') !== false) {
list($pageID, $names) = explode(':', $names);
} else if(strpos($names, '.') !== false) {
list($pageID, $names) = explode('.', $names);
}
}
}
if(ctype_digit($names) && !ctype_digit($pageID)) {
list($names, $pageID) = array($pageID, $names); // swap order detected