Skip to content

In DSpace 7.6.3/8.1, it's not possible to remove data from a submission form field of type "name" or remove such a field entirely. Error messages are logged to the browser console #4073

@MW3000

Description

@MW3000

Describe the bug

In DSpace 8.1, when using a submission form field of type "name" it is not possible to delete data from such a field or to delete such a field entirely.

Instead an error message is logged to the console. After saving and reopening a submission, the "deleted" data just reappears.

Image

To Reproduce

Steps to reproduce the behavior:

  1. Start a new submission with a form that includes a field of type "name". If you use the demo site, you could add a journal submission, then you can test with the "editor" field.
  2. Enter data into a field of type "name"
  3. Save your submission
  4. Delete the data from the field of type "name", or if the field is repeatable you can also trash the field
  5. Save your submission for later
  6. Open your submission again
  7. The "deleted" data is back again!!
  8. Check the error console of your browser for error messages

Expected behavior

When you empty or delete a field of type "name" the data should be deleted, like with all other field types

Browser console error message:

[Error] ERROR
TypeError: null is not an object (evaluating 'P.hasValue')
dispatchOperationsFromChangeEvent — 1717.9091a77de8e67e1a.js:1:21189
dispatchOperationsFromEvent — 1717.9091a77de8e67e1a.js:1:17141
onChange — 1717.9091a77de8e67e1a.js:1:53311
(anonymous function) — 1717.9091a77de8e67e1a.js:1:48218
Rm — main.83590f2f1f9c400b.js:1:2306490
F — main.83590f2f1f9c400b.js:1:2306664
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:722416
Rm — main.83590f2f1f9c400b.js:1:2306490
F — main.83590f2f1f9c400b.js:1:2306664
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onCustomEvent — main.83590f2f1f9c400b.js:1:2706121
(anonymous function) — main.83590f2f1f9c400b.js:1:714600
Rm — main.83590f2f1f9c400b.js:1:2306490
F — main.83590f2f1f9c400b.js:1:2306664
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:2736630
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:2703765
(anonymous function) — main.83590f2f1f9c400b.js:1:1746871
Rm — main.83590f2f1f9c400b.js:1:2306490
F — main.83590f2f1f9c400b.js:1:2306664
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:2736630
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:2703765
(anonymous function) — main.83590f2f1f9c400b.js:1:1746871
Rm — main.83590f2f1f9c400b.js:1:2306490
F — main.83590f2f1f9c400b.js:1:2306664
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:2736553
next — main.83590f2f1f9c400b.js:1:1908892
_next — main.83590f2f1f9c400b.js:1:1908576
next — main.83590f2f1f9c400b.js:1:1908272
(anonymous function) — main.83590f2f1f9c400b.js:1:1906234
l — main.83590f2f1f9c400b.js:1:1935712
next — main.83590f2f1f9c400b.js:1:1906069
emit — main.83590f2f1f9c400b.js:1:2221500
onChange — main.83590f2f1f9c400b.js:1:2703765
(anonymous function) — main.83590f2f1f9c400b.js:1:1714605
Rm — main.83590f2f1f9c400b.js:1:2306490
F — main.83590f2f1f9c400b.js:1:2306664
(anonymous function) — main.83590f2f1f9c400b.js:1:2403163
onInvokeTask — main.83590f2f1f9c400b.js:1:2258829
runTask — polyfills.482bb5fb9fed0f99.js:1:16216
invokeTask — polyfills.482bb5fb9fed0f99.js:1:22130
Zt — polyfills.482bb5fb9fed0f99.js:1:5339
er — polyfills.482bb5fb9fed0f99.js:1:5662
	handleError (main.83590f2f1f9c400b.js:1:2220472)
	Lf (main.83590f2f1f9c400b.js:1:2247924)
	Rm (main.83590f2f1f9c400b.js:1:2306512)
	F (main.83590f2f1f9c400b.js:1:2306664)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:722416)
	Rm (main.83590f2f1f9c400b.js:1:2306490)
	F (main.83590f2f1f9c400b.js:1:2306664)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onCustomEvent (main.83590f2f1f9c400b.js:1:2706121)
	(anonymous function) (main.83590f2f1f9c400b.js:1:714600)
	Rm (main.83590f2f1f9c400b.js:1:2306490)
	F (main.83590f2f1f9c400b.js:1:2306664)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:2736630)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:2703765)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1746871)
	Rm (main.83590f2f1f9c400b.js:1:2306490)
	F (main.83590f2f1f9c400b.js:1:2306664)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:2736630)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:2703765)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1746871)
	Rm (main.83590f2f1f9c400b.js:1:2306490)
	F (main.83590f2f1f9c400b.js:1:2306664)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:2736553)
	next (main.83590f2f1f9c400b.js:1:1908892)
	_next (main.83590f2f1f9c400b.js:1:1908576)
	next (main.83590f2f1f9c400b.js:1:1908272)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1906234)
	l (main.83590f2f1f9c400b.js:1:1935712)
	next (main.83590f2f1f9c400b.js:1:1906069)
	emit (main.83590f2f1f9c400b.js:1:2221500)
	onChange (main.83590f2f1f9c400b.js:1:2703765)
	(anonymous function) (main.83590f2f1f9c400b.js:1:1714605)
	Rm (main.83590f2f1f9c400b.js:1:2306490)
	F (main.83590f2f1f9c400b.js:1:2306664)
	(anonymous function) (main.83590f2f1f9c400b.js:1:2403163)
	onInvokeTask (main.83590f2f1f9c400b.js:1:2258829)
	runTask (polyfills.482bb5fb9fed0f99.js:1:16216)
	invokeTask (polyfills.482bb5fb9fed0f99.js:1:22130)
	Zt (polyfills.482bb5fb9fed0f99.js:1:5339)
	er (polyfills.482bb5fb9fed0f99.js:1:5662)

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions