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:
@@ -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
|
||||
|
Reference in New Issue
Block a user