Skip to content

when multiple calendars are configured, subsequent fetches only fetch the last entry in the array #2160

@sdetweil

Description

@sdetweil

this is a timing problem.

the list of cals is processed, and a timer is started for each

but, when the timer invokes the refresh addCalendar , the variable 'calendar' has long since been set to the last cal entry in the array, and will never change

fix,
move the setInterval (actually setTimer) into the addCalendar routine to have non-volatile access to the parameters

pr coming

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions