mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 20:41:16 +02:00
Fix issue processwire/processwire-issues#862
This commit is contained in:
@@ -35,6 +35,20 @@ class FieldtypePageTitle extends FieldtypeText implements FieldtypePageTitleComp
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sanitize value for storage
|
||||
*
|
||||
* @param Page $page
|
||||
* @param Field $field
|
||||
* @param string $value
|
||||
* @return string
|
||||
*
|
||||
*/
|
||||
public function sanitizeValue(Page $page, Field $field, $value) {
|
||||
if(is_string($value)) $value = trim($value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function ___getCompatibleFieldtypes(Field $field) {
|
||||
$fieldtypes = $this->wire(new Fieldtypes());
|
||||
foreach($this->wire('fieldtypes') as $fieldtype) {
|
||||
|
Reference in New Issue
Block a user