samvera-deprecated / sufia

[DEPRECATED] Sufia: a fully featured, flexible Samvera repository front-end.
http://sufia.io/
Other
111 stars 78 forks source link

undefined method `permit!' for nil:NilClass #3132

Closed hackartisan closed 7 years ago

hackartisan commented 7 years ago

Sufia 7.3 RC

If I submit batch create without selecting any resource types I get an error:

https://gist.github.com/hackmastera/641336392288155a48b8e2be31e43dce

Note that resource type is not a required field.

Expected behavior

works should save and not have a resource type

Actual behavior

NoMethodError

jcoyne commented 7 years ago

Have you modified the batch upload form? Can you post the parameters that Rails is receiving (from the log)?

hackartisan commented 7 years ago

This behavior was observed in a newly-generated 7.3.rc3 test app.

Here are the parameters: https://gist.github.com/hackmastera/4e8c49324d0d979bf376fc2b24f30d4f