mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-06 10:26:22 +08:00
Fix connector migration
This commit is contained in:
parent
d8965ca3bc
commit
c760739af3
2 changed files with 3 additions and 3 deletions
|
@ -236,11 +236,11 @@ abstract class source
|
||||||
if (file_exists("custom/modules/Connectors/connectors/sources/{$dir}/config.php")) {
|
if (file_exists("custom/modules/Connectors/connectors/sources/{$dir}/config.php")) {
|
||||||
require("custom/modules/Connectors/connectors/sources/{$dir}/config.php");
|
require("custom/modules/Connectors/connectors/sources/{$dir}/config.php");
|
||||||
}
|
}
|
||||||
$this->_config = $config;
|
$this->_config = $config ?? [];
|
||||||
|
|
||||||
//If there are no required config fields specified, we will default them to all be required
|
//If there are no required config fields specified, we will default them to all be required
|
||||||
if (empty($this->_required_config_fields)) {
|
if (empty($this->_required_config_fields)) {
|
||||||
foreach ($this->_config['properties'] as $id=>$value) {
|
foreach ($this->_config['properties'] ?? [] as $id=>$value) {
|
||||||
$this->_required_config_fields[] = $id;
|
$this->_required_config_fields[] = $id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -630,7 +630,7 @@ class ConnectorUtils
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setHoverField(
|
public static function setHoverField(
|
||||||
&$viewdefs,
|
&$viewdefs,
|
||||||
$module,
|
$module,
|
||||||
$hover_field,
|
$hover_field,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue