View Issue Details

IDProjectCategoryView StatusLast Update
0018713Return of ReckoningGeneralpublic2023-08-13 04:24
ReporterReturnOfReckoning Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0018713: Guild calendar tab resets incorrectly
DescriptionReporter: Filip-88

If you try to make a new event or open the details of a existing event in the guild calendar you will be "kicked out" (reset to default calendar tab view) whenever the guild gets exp. (SystemData.Events.GUILD_EXP_UPDATED fires)

**Expected behavior and actual behavior:**
You should stay in the current view.

**Steps to reproduce the problem:**
1. click on a event in the guild calendar, or press "new".
2. wait for the guild to earn exp (SystemData.Events.GUILD_EXP_UPDATED)


**Possible fix?**
in "GuildWindowTabCalendar.lua" change method "GuildWindowTabCalendar.UpdateCalendarWatermark"
to:
```
function GuildWindowTabCalendar.UpdateCalendarWatermark()
    
    local calendarUnlocked = (GameData.Guild.m_GuildRank >= GuildWindowTabCalendar.RankUnlocked)

    WindowSetShowing( "GuildWindowCalendar", calendarUnlocked )
    WindowSetShowing( "GWCalendarFilters", calendarUnlocked )
    WindowSetShowing( "GWCalendarNewAppointmentButton", calendarUnlocked )
    WindowSetShowing( "GWCalendarAppointmentSeperator", calendarUnlocked )
    WindowSetShowing( "GWCalendarAppointments", calendarUnlocked )
    WindowSetShowing( "GWCalendarVertSeparator", calendarUnlocked )
    WindowSetShowing( "GWCalendarTotalAppointments", calendarUnlocked )
    if( calendarUnlocked )
    then
        GuildWindowTabCalendar.SetAppointmentMode(GuildWindowTabCalendar.Appointment_Mode)
        GuildWindowTabCalendar.UpdateAppointmentList()
    end

    WindowSetShowing( "GWCalendarLocked", calendarUnlocked == false)

    if calendarUnlocked == false then
        LabelSetText("GWCalendarLockedText", GetFormatStringFromTable( "guildstrings", StringTables.Guild.TEXT_CALENDAR_UNLOCKS_AT_RANK_X, {GuildWindowTabCalendar.RankUnlocked} ) )
    end
    
end
```

The only change is:
**GuildWindowTabCalendar.SetAppointmentMode(GuildWindowTabCalendar.Appointment_Mode)**
intead of:
GuildWindowTabCalendar.SetAppointmentMode(0)

This seems to work fine for me when I tried by hook from a addon.
TagsGuilds

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-08-13 04:24 ReturnOfReckoning New Issue
2023-08-13 04:24 ReturnOfReckoning Tag Attached: Guilds