Skip to content

Commit

Permalink
Merge pull request #5580 from samvera/issue-5492
Browse files Browse the repository at this point in the history
allow sub-collections to be created from collection page
  • Loading branch information
elrayle committed Mar 28, 2022
2 parents 739920c + 0e38123 commit 03b3cd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def self.valid_combined_nesting_depth?(parent:, child: nil, scope:)
# @return [Fixnum] the largest number of collections in a path nested
# under this collection (including this collection)
def self.child_nesting_depth(child:, scope:)
return 1 if child.nil?
return 1 unless child
# The nesting depth of a child collection is found by finding the largest nesting depth
# among all collections and works which have the child collection in the paths, and
# subtracting the nesting depth of the child collection itself.
Expand Down

0 comments on commit 03b3cd9

Please sign in to comment.