1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 22:34:15 +02:00

Update Fieldtype and FieldtypeMulti to use bind params in a couple spots where they weren't and could support it

This commit is contained in:
Ryan Cramer
2020-05-22 13:23:07 -04:00
parent 88e04129c7
commit 99f778f109
3 changed files with 36 additions and 20 deletions

View File

@@ -1025,7 +1025,7 @@ class FieldtypeFile extends FieldtypeMulti implements ConfigurableModule {
$hasTags = $fileSchema & self::fileSchemaTags;
$useTags = $field->get('useTags') || $contextField->get('useTags');
if(!$hasFilesize || !$hasFiledata || !$hasDate || !$hasTags) {
if(!$hasFilesize || !$hasFiledata || !$hasDate) {
if(!$database->tableExists($table)) {
// new field being created, getting initial schema to create table
return $fileSchema;