Merge branch 'ent-7268-Falla-sincronizacion-de-inventario-Integria-Pandora' into 'develop'
changed request protocol See merge request artica/pandorafms!4033
This commit is contained in:
commit
a990689e59
|
@ -834,7 +834,7 @@ echo '</form>';
|
|||
|
||||
// AJAX call to check API connection.
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
type: "POST",
|
||||
url: url,
|
||||
dataType: "json",
|
||||
data: data
|
||||
|
|
|
@ -1645,8 +1645,12 @@ function config_update_config()
|
|||
$integria_hostname = (string) get_parameter('integria_hostname', $config['integria_hostname']);
|
||||
|
||||
if (parse_url($integria_hostname, PHP_URL_SCHEME) === null) {
|
||||
if (empty($_SERVER['HTTPS']) === false) {
|
||||
$integria_hostname = 'https://'.$integria_hostname;
|
||||
} else {
|
||||
$integria_hostname = 'http://'.$integria_hostname;
|
||||
}
|
||||
}
|
||||
|
||||
if (!config_update_value('integria_hostname', $integria_hostname)) {
|
||||
$error_update[] = __('integria API hostname');
|
||||
|
|
Loading…
Reference in New Issue