UCL / frrant

2 stars 0 forks source link

Original texts can be created with no reference #351

Closed tcouch closed 2 years ago

tcouch commented 2 years ago

When creating a new fragment, the form can be submitted with no references. The fragment is created successfully, but an error is raised when rendering the detail page because the reference_list property cannot deal with an original text having no references.

The solution would be to either:

tcouch commented 2 years ago

@rmamarshall do you think it would be preferable to allow original texts to be created without any references, or should be put controls in place to prevent that happening?

rmamarshall commented 2 years ago

@tcouch Every original text needs at least one reference - a block to prevent the creation of original texts without an entry in a reference field would be a good idea.