Closed olafgrabienski closed 1 year ago
Applying the D7 fix to Backdrop by changing https://github.com/backdrop-contrib/og/blob/1.x-2.x/og_context/og_context.module#L450 from
if (strpos($item['path'], $path) === 0) {
to
if ($item && strpos($item['path'], $path) === 0) {
fixes the issue for me.
Thanks, @olafgrabienski. This looks like the correct fix. Would you like to submit a PR? :)
Sure, PR submitted: https://github.com/backdrop-contrib/og/pull/136
Thank you much, @olafgrabienski! LGTM. @laryn, should I go ahead and merge?
LGTM too -- thanks @olafgrabienski!
Thanks! Merged!
After upgrading a site from D7 to Backdrop, I see the following notice on many pages of the Backdrop site:
There is a D7 issue which was fixed about two years ago. There hasn't been a new D7 Organic Groups release since then, so the fix was only committed to the dev branch.