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.
To Reproduce
Steps to reproduce the behavior:
- 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.
- Enter data into a field of type "name"
- Save your submission
- Delete the data from the field of type "name", or if the field is repeatable you can also trash the field
- Save your submission for later
- Open your submission again
- The "deleted" data is back again!!
- 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)
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.
To Reproduce
Steps to reproduce the behavior:
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: