diff --git a/wire/modules/Fieldtype/FieldtypeDatetime.module b/wire/modules/Fieldtype/FieldtypeDatetime.module index 87f41e50..1ca79a29 100644 --- a/wire/modules/Fieldtype/FieldtypeDatetime.module +++ b/wire/modules/Fieldtype/FieldtypeDatetime.module @@ -279,7 +279,7 @@ class FieldtypeDatetime extends Fieldtype { */ public function ___getSelectorInfo(Field $field, array $data = array()) { $a = parent::___getSelectorInfo($field, $data); - $a['operators'] = array('=', '!=', '>', '>=', '<', '<=', '%=', '^='); + $a['operators'] = array('=', '!=', '>', '>=', '<', '<=', '%=', '^=', '=""', '!=""'); return $a; } diff --git a/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module b/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module index 464884db..9bb25984 100644 --- a/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module +++ b/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module @@ -963,7 +963,7 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel $sort = $input->$key; if($sort !== null) { $sort = (int) $sort; - $pagefile->sort = $sort; + $pagefile->set('sort', $sort); if($n !== $sort) $changed = true; $saveFields = true; } @@ -982,6 +982,8 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel } else if(!$this->isAjax && !$this->overwrite && $pagefile->isTemp() && $sort !== null) { // if page saved with temporary items when not ajax, those temporary items become non-temp $pagefile->isTemp(false); + // @todo should the next statement instead be this below? + // if($this->maxFiles > 0) while(count($this->value) > $this->>maxFiles) { ... } ? if($this->maxFiles == 1) while(count($this->value) > 1) { $item = $this->value->first(); $this->value->remove($item);