By the way, the SecureGroupPetHeader seems to assign invalid pet unit ids (when both useOwnerUnit and filterOnPet are false), e.g. raidpetpet1 instead of raidpet1. A workaround consists in adding the following snippet when spawning the header :
Code:
oUF:SpawnHeader(name, template, visibility,
'oUF-initialConfigFunction', [[
self:SetAttribute('refreshUnitChange', [=[
local unit = self:GetAttribute('unit')
if unit then
unit = unit:gsub('petpet', 'pet')
if unit ~= self:GetAttribute('unit') then
self:SetAttribute('unit', unit)
end
end
]=])
]]
)
The "refreshUnitChange" attribute is called by the SecureGroupHeader when the header buttons are updated.