Skip to content

Commit 3bcac38

Browse files
Fix creation of question/post to only allow one file upload
1 parent dfa0455 commit 3bcac38

4 files changed

+6
-4
lines changed

config/sync/field.field.node.os2loop_post.os2loop_content_anonymous_author.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ label: 'Anonym forfatter?'
1515
description: ''
1616
required: false
1717
translatable: true
18-
default_value: { }
18+
default_value:
19+
-
20+
value: '0'
1921
default_value_callback: ''
2022
settings: { }
2123
field_type: list_string

config/sync/field.field.node.os2loop_question.os2loop_content_anonymous_author.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ required: true
1717
translatable: true
1818
default_value:
1919
-
20-
value: '1'
20+
value: '0'
2121
default_value_callback: ''
2222
settings: { }
2323
field_type: list_string

config/sync/field.storage.node.os2loop_post_file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ settings:
1313
target_type: media
1414
module: core
1515
locked: false
16-
cardinality: -1
16+
cardinality: 1
1717
translatable: true
1818
indexes: { }
1919
persist_with_no_fields: false

config/sync/field.storage.node.os2loop_question_file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ settings:
1313
target_type: media
1414
module: core
1515
locked: false
16-
cardinality: -1
16+
cardinality: 1
1717
translatable: true
1818
indexes: { }
1919
persist_with_no_fields: false

0 commit comments

Comments
 (0)