• Drew Blessing's avatar
    Fix cascading settings attr writer behavior · 5c4f6a73
    Drew Blessing authored
    If set value matches the cascaded value, do not save locally.
    This fixes an issue where a simple settings form save by a subgroup
    would cause a cascaded value to be saved at the subgroup level,
    defeating future cascading lookups. Also, when setting a lock
    attribute and the local setting is `nil`, copy the value locally to
    ensure ancestors can't change the intended value for subgroups later.
    
    Changelog: fixed
    5c4f6a73
cascading_namespace_setting_attribute.rb 8.86 KB