Working branch user/jeffdavis/lp1848375_auto_overlay_org_unit_copies has the fix:
https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jeffdavis/lp1848375_auto_overlay_org_unit_copies
If we run out of scope_args, cardinality(scope_args) is NULL rather than 0, so we need to check for that. In addition, we now exit early once we have a match, rather than preparing another iteration unnecessarily.
Working branch user/jeffdavis/ lp1848375_ auto_overlay_ org_unit_ copies has the fix:
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ jeffdavis/ lp1848375_ auto_overlay_ org_unit_ copies
If we run out of scope_args, cardinality( scope_args) is NULL rather than 0, so we need to check for that. In addition, we now exit early once we have a match, rather than preparing another iteration unnecessarily.