Unable to create the subcollection for collection using `Add new collection to this Collection` Button
Steps to reproduce:-
- Log in to the hyrax dashboard.
- Click collections under the
Repository Contents
in the menu bar. - Create a collection using the
New Collection
button. Select user collection or relevant collection type. - Once after creating the Collection, click on
collections
again under theRepository Contents
in the menu bar. - Select the recently created collection. On the Show page, click the
Add new collection to this Collection
button.
Current Behaviour:- Unable to create the collection as the sub-collection
Expected Behavior:- User should be able to create sub-collections from the parent collection show page using the button.
Error Trace:-
NoMethodError in Hyrax::Dashboard::NestCollectionsController#create_collection_under
undefined method `id' for false:FalseClass
Extracted source (around line #182):
# the indexer, so we do NOT use collection search builder here.
builder = Hyrax::SearchBuilder.new(scope).with({
q: "#{Samvera::NestingIndexer.configuration.solr_field_name_for_storing_pathnames}:/.*#{child.id}.*/",
sort: "#{Samvera::NestingIndexer.configuration.solr_field_name_for_deepest_nested_depth} desc"
})
builder.rows = 1
Error Screenshot for Reference :-