Commit 900c08ef authored by gbyte.co's avatar gbyte.co

Issue #2887373 by Grimreaper: 'Indexed' checkbox on entity/bundle edit pages wrong value

parent 522fa04a
......@@ -475,13 +475,14 @@ class Simplesitemap {
* @param array $overrides
*/
public static function supplementDefaultSettings($type, &$settings, $overrides = []) {
foreach(self::$allowedLinkSettings[$type] as $allowed_link_setting) {
foreach (self::$allowedLinkSettings[$type] as $allowed_link_setting) {
if (!isset($settings[$allowed_link_setting])
&& isset(self::$linkSettingDefaults[$allowed_link_setting])) {
$settings[$allowed_link_setting] = self::$linkSettingDefaults[$allowed_link_setting];
$settings[$allowed_link_setting] = isset($overrides[$allowed_link_setting])
? $overrides[$allowed_link_setting]
: self::$linkSettingDefaults[$allowed_link_setting];
}
}
$settings = array_merge($settings, $overrides);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment