From fcd49d7135e9bf0efa4d3727cfd9995d8faee424 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Thu, 10 Feb 2022 15:18:15 +0000 Subject: [PATCH] Maintenance: Make sure relation options will be only read for select fields, so it has no impact for auto_completion fields. --- app/models/core_workflow/attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/core_workflow/attributes.rb b/app/models/core_workflow/attributes.rb index 57ae9cfdf..c5c6b0033 100644 --- a/app/models/core_workflow/attributes.rb +++ b/app/models/core_workflow/attributes.rb @@ -213,7 +213,7 @@ class CoreWorkflow::Attributes end def attribute_options_relation?(attribute) - attribute[:relation].present? + attribute[:tag] == 'select' && attribute[:relation].present? end def values(attribute)