mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Add PR #241 support pages.find() joinFields option for FieldtypeOptions fields
This commit is contained in:
@@ -278,6 +278,9 @@ class FieldtypeOptions extends FieldtypeMulti implements Module {
|
||||
*/
|
||||
public function ___wakeupValue(Page $page, Field $field, $value) {
|
||||
if($value) {
|
||||
if(is_string($value) && strpos($value, self::multiValueSeparator) !== false) {
|
||||
$value = explode(self::multiValueSeparator, $value);
|
||||
}
|
||||
$wakeupValue = $this->manager->getOptions($field, array('id' => $value));
|
||||
} else {
|
||||
$wakeupValue = $this->getBlankValue($page, $field);
|
||||
|
Reference in New Issue
Block a user