Handle NoMethodError in LabelReferenceFilter URL generation

What does this MR do and why?

When resolving label_url_method, if the parent object does not the method needed, a NoMethodError can get thrown. Since any label_url_method can be passed into the context, we can't check every combination. So let's just catch and return nil.

References

Relates to issue #563368 (closed)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Brett Walker

Merge request reports

Loading