Parcourir la source

Change the type of the calendarlinkurl option to "select-input". This is to cover the following case:

An instance of Radarr or Sonarr is added to Organizr. Since the communication between Organizr and these services should preferably be done through a non-public channel, addresses like: http://radarr:7878 or http://sonarr:8989 are entered in the "Multiple URLs" fields. These URLs are then used to generate the links that lead from the calendar to the respective service. But if Oganizr is reachable from the public internet and is also used through it, the generated URLs do not work. With the new form type it is then possible to enter a self chosen public address.
Steven Günther il y a 4 ans
Parent
commit
9e3bc87436
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/functions/option-functions.php

+ 1 - 1
api/functions/option-functions.php

@@ -458,7 +458,7 @@ trait OptionsFunction
 				break;
 			case 'calendarlinkurl':
 				$settingMerge = [
-					'type' => 'select',
+					'type' => 'select-input',
 					'label' => 'Target URL',
 					'help' => 'Set the primary URL used when clicking on calendar icon.',
 					'options' => $this->makeOptionsFromValues($this->config[str_replace('CalendarLink', '', $name) . 'URL'], true, 'Use Default'),