1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 17:54:44 +02:00

Some minor fixes to enable deleting a field that is missing its Fieldtype module. Plus addition of hasPage property to Inputfield modules. And a couple other minor things.

This commit is contained in:
Ryan Cramer
2017-07-07 14:03:39 -04:00
parent 5ec3e48de6
commit ae4761180f
5 changed files with 10 additions and 6 deletions

View File

@@ -677,6 +677,8 @@ class Fields extends WireSaveableItems {
'countPages' => false,
'getPageIDs' => false,
);
if(!$field->type) return 0;
$options = array_merge($defaults, $options);
$database = $this->wire('database');