Show the any-provider if there are more than one providers

This commit is contained in:
Alex Tselegidis 2024-12-19 22:51:10 +02:00
parent c8bb40d2b9
commit 76039fb875

View file

@ -373,7 +373,7 @@ App.Pages.Booking = (function () {
}); });
// Add the "Any Provider" entry. // Add the "Any Provider" entry.
if ($selectProvider.find('option').length > 1 && vars('display_any_provider') === '1') { if ($selectProvider.find('option').length > 2 && vars('display_any_provider') === '1') {
$(new Option(lang('any_provider'), 'any-provider')).insertAfter($selectProvider.find('option:first')); $(new Option(lang('any_provider'), 'any-provider')).insertAfter($selectProvider.find('option:first'));
} }