From 0124220c64e5389781016cfd8945722b0b8e4927 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 2 Jan 2023 11:36:58 +0000 Subject: [PATCH] 'BasedOn' custom field options now works with autocomplete type Previously this option didn't do anything when a custom field was based on an autocomplete type. Fixes https://rt.bestpractical.com/Ticket/Display.html?id=37524 --- share/static/js/event-registration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/static/js/event-registration.js b/share/static/js/event-registration.js index 03ba528926a..217ccaa0e08 100644 --- a/share/static/js/event-registration.js +++ b/share/static/js/event-registration.js @@ -94,6 +94,8 @@ jQuery(function() { var vals; if ( jQuery(this).is('select') ) { vals = based_on.first().val(); + } else if (jQuery(this).is('input[type="text"]')) { + vals = based_on.val(); } else { vals = [];