diff --git a/application/config/migration.php b/application/config/migration.php index 78e384e4..c6248e12 100755 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -37,7 +37,7 @@ $config['migration_table'] = 'ea_migrations'; | be upgraded / downgraded to. | */ -$config['migration_version'] = 18; // current +$config['migration_version'] = 19; // current /* diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 4775d5fa..4372780d 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -85,6 +85,7 @@ class Appointments extends CI_Controller { $terms_and_conditions_content = $this->settings_model->get_setting('terms_and_conditions_content'); $display_privacy_policy = $this->settings_model->get_setting('display_privacy_policy'); $privacy_policy_content = $this->settings_model->get_setting('privacy_policy_content'); + $display_any_provider = $this->settings_model->get_setting('display_any_provider'); $timezones = $this->timezones_model->to_array(); // Remove the data that are not needed inside the $available_providers array. @@ -164,6 +165,7 @@ class Appointments extends CI_Controller { 'display_privacy_policy' => $display_privacy_policy, 'privacy_policy_content' => $privacy_policy_content, 'timezones' => $timezones, + 'display_any_provider' => $display_any_provider, ]; } catch (Exception $exc) diff --git a/application/language/arabic/translations_lang.php b/application/language/arabic/translations_lang.php index a27e01c6..7d30f657 100755 --- a/application/language/arabic/translations_lang.php +++ b/application/language/arabic/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/bulgarian/translations_lang.php b/application/language/bulgarian/translations_lang.php index 42f41dbe..204b5916 100755 --- a/application/language/bulgarian/translations_lang.php +++ b/application/language/bulgarian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/chinese/translations_lang.php b/application/language/chinese/translations_lang.php index c48c58b9..b7b09139 100755 --- a/application/language/chinese/translations_lang.php +++ b/application/language/chinese/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/czech/translations_lang.php b/application/language/czech/translations_lang.php index 43ec4df8..24a831cb 100644 --- a/application/language/czech/translations_lang.php +++ b/application/language/czech/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/danish/translations_lang.php b/application/language/danish/translations_lang.php index 12a4236f..97a831a3 100755 --- a/application/language/danish/translations_lang.php +++ b/application/language/danish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/dutch/translations_lang.php b/application/language/dutch/translations_lang.php index f1db0d95..4cd66220 100755 --- a/application/language/dutch/translations_lang.php +++ b/application/language/dutch/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/english/translations_lang.php b/application/language/english/translations_lang.php index e430de13..f9ba8538 100755 --- a/application/language/english/translations_lang.php +++ b/application/language/english/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/finnish/translations_lang.php b/application/language/finnish/translations_lang.php index c53ece9a..1e8a7cb1 100755 --- a/application/language/finnish/translations_lang.php +++ b/application/language/finnish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/french/translations_lang.php b/application/language/french/translations_lang.php index 7a7b45be..02df69e6 100755 --- a/application/language/french/translations_lang.php +++ b/application/language/french/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/german/translations_lang.php b/application/language/german/translations_lang.php index 32e1e5c5..528fc4d3 100755 --- a/application/language/german/translations_lang.php +++ b/application/language/german/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/greek/translations_lang.php b/application/language/greek/translations_lang.php index 1403767f..030d288b 100755 --- a/application/language/greek/translations_lang.php +++ b/application/language/greek/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/hindi/translations_lang.php b/application/language/hindi/translations_lang.php index dd941639..756efc35 100755 --- a/application/language/hindi/translations_lang.php +++ b/application/language/hindi/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/hungarian/translations_lang.php b/application/language/hungarian/translations_lang.php index a2c18c56..55c55571 100755 --- a/application/language/hungarian/translations_lang.php +++ b/application/language/hungarian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/italian/translations_lang.php b/application/language/italian/translations_lang.php index 916edfed..0c681012 100755 --- a/application/language/italian/translations_lang.php +++ b/application/language/italian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/japanese/translations_lang.php b/application/language/japanese/translations_lang.php index db5045ce..85eca437 100755 --- a/application/language/japanese/translations_lang.php +++ b/application/language/japanese/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/luxembourgish/translations_lang.php b/application/language/luxembourgish/translations_lang.php index 75b16a30..13140748 100755 --- a/application/language/luxembourgish/translations_lang.php +++ b/application/language/luxembourgish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/marathi/translations_lang.php b/application/language/marathi/translations_lang.php index a374b1b7..b7fccff0 100644 --- a/application/language/marathi/translations_lang.php +++ b/application/language/marathi/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/polish/translations_lang.php b/application/language/polish/translations_lang.php index e832f462..f1f0a029 100755 --- a/application/language/polish/translations_lang.php +++ b/application/language/polish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/portuguese-br/translations_lang.php b/application/language/portuguese-br/translations_lang.php index e08809e4..f96058d1 100755 --- a/application/language/portuguese-br/translations_lang.php +++ b/application/language/portuguese-br/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/portuguese/translations_lang.php b/application/language/portuguese/translations_lang.php index 928f138d..334e1a34 100755 --- a/application/language/portuguese/translations_lang.php +++ b/application/language/portuguese/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/romanian/translations_lang.php b/application/language/romanian/translations_lang.php index b4e2ea09..af721c15 100755 --- a/application/language/romanian/translations_lang.php +++ b/application/language/romanian/translations_lang.php @@ -319,4 +319,5 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; -$lang['load_more'] = 'Load More'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; diff --git a/application/language/russian/translations_lang.php b/application/language/russian/translations_lang.php index b1e46bd5..a89d70b7 100755 --- a/application/language/russian/translations_lang.php +++ b/application/language/russian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/slovak/translations_lang.php b/application/language/slovak/translations_lang.php index 513b0d6e..d89bcba3 100755 --- a/application/language/slovak/translations_lang.php +++ b/application/language/slovak/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/spanish/translations_lang.php b/application/language/spanish/translations_lang.php index 74ec5982..c3776cd3 100755 --- a/application/language/spanish/translations_lang.php +++ b/application/language/spanish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/turkish/translations_lang.php b/application/language/turkish/translations_lang.php index 68599572..966bf8fe 100755 --- a/application/language/turkish/translations_lang.php +++ b/application/language/turkish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/migrations/019_add_display_any_provider_setting.php b/application/migrations/019_add_display_any_provider_setting.php new file mode 100644 index 00000000..114a8407 --- /dev/null +++ b/application/migrations/019_add_display_any_provider_setting.php @@ -0,0 +1,29 @@ + + * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.4.0 + * ---------------------------------------------------------------------------- */ + +class Migration_Add_display_any_provider_setting extends CI_Migration { + public function up() + { + $this->db->insert('ea_settings', [ + 'name' => 'display_any_provider', + 'value' => '1' + ]); + } + + public function down() + { + $this->db->delete('ea_settings', [ + 'name' => 'display_any_provider' + ]); + } +} diff --git a/application/views/appointments/book.php b/application/views/appointments/book.php index c76248bd..b777838c 100755 --- a/application/views/appointments/book.php +++ b/application/views/appointments/book.php @@ -380,6 +380,7 @@ appointmentData : , providerData : , customerData : , + displayAnyProvider : , csrfToken : security->get_csrf_hash()) ?> }; diff --git a/application/views/backend/settings.php b/application/views/backend/settings.php index b68c47a0..d5f51f71 100755 --- a/application/views/backend/settings.php +++ b/application/views/backend/settings.php @@ -192,7 +192,7 @@

+
+ +
+ + + + +
diff --git a/assets/css/backend.css b/assets/css/backend.css index be1ab957..c044de16 100644 --- a/assets/css/backend.css +++ b/assets/css/backend.css @@ -762,12 +762,16 @@ body .form-horizontal .controls { #settings-page #user-notifications, #settings-page #customer-notifications, +#settings-page #display-any-provider, +#settings-page #require-phone-number, #settings-page #require-captcha { outline: none; } #settings-page #user-notifications.active, #settings-page #customer-notifications.active, +#settings-page #display-any-provider.active, +#settings-page #require-phone-number.active, #settings-page #require-captcha.active { background: #B6DCFF; } diff --git a/assets/js/backend_settings.js b/assets/js/backend_settings.js index a36baba9..49147102 100644 --- a/assets/js/backend_settings.js +++ b/assets/js/backend_settings.js @@ -75,6 +75,10 @@ window.BackendSettings = window.BackendSettings || {}; $('#require-phone-number').addClass('active'); } + if (setting.name === 'display_any_provider' && setting.value === '1') { + $('#display-any-provider').addClass('active'); + } + if (setting.name === 'display_cookie_notice') { $('#display-cookie-notice').prop('checked', setting.value === '1'); } diff --git a/assets/js/backend_settings_system.js b/assets/js/backend_settings_system.js index 012b76fb..c15f826d 100644 --- a/assets/js/backend_settings_system.js +++ b/assets/js/backend_settings_system.js @@ -49,7 +49,7 @@ // Update variables also used in other setting tabs GlobalVariables.timeFormat = $('#time-format').val(); GlobalVariables.firstWeekday = $('#first-weekday').val(); - + // We need to refresh the working plan. var workingPlan = BackendSettings.wp.get(); BackendSettings.wp.setup(workingPlan); @@ -90,6 +90,11 @@ value: $('#require-phone-number').hasClass('active') === true ? '1' : '0' }); + settings.push({ + name: 'display_any_provider', + value: $('#display-any-provider').hasClass('active') === true ? '1' : '0' + }); + // Business Logic Tab settings.push({ diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 644e16f4..952af0da 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -247,7 +247,7 @@ window.FrontendBook = window.FrontendBook || {}; }); // Add the "Any Provider" entry. - if ($('#select-provider option').length >= 1) { + if ($('#select-provider option').length >= 1 && GlobalVariables.displayAnyProvider === '1') { $('#select-provider').append(new Option('- ' + EALang.any_provider + ' -', 'any-provider')); } diff --git a/assets/sql/data.sql b/assets/sql/data.sql index 1fcb2f11..dd98ad2e 100644 --- a/assets/sql/data.sql +++ b/assets/sql/data.sql @@ -25,6 +25,7 @@ VALUES ('privacy_policy_content', 'Privacy policy content.'), ('first_weekday', 'sunday'), ('require_phone_number', '1'), - ('api_token', ''); + ('api_token', ''), + ('display_any_provider', '1'); -INSERT INTO `ea_migrations` VALUES ('18'); +INSERT INTO `ea_migrations` VALUES ('19');