Skip to content

Commit d75a886

Browse files
committed
Resolve issue with new instance objects and defined type (edge case) for this one field.
1 parent 9c2106a commit d75a886

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Settings/FieldTypes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ public function datetimeLocal(array $args): void
139139
['pattern' => '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}']
140140
)
141141
);
142+
\ob_start();
142143
$this->text($args);
144+
echo \str_replace($field->getType(), FieldTypes::FIELD_TYPE_DATETIME, \ob_get_clean());
143145
}
144146

145147
/**

0 commit comments

Comments
 (0)