Skip to content

A1: Enabling the module makes calendars and task scheduling fatal (getLibraryClass() removed) #2

Open

Description

@caseysoftware

holiday_functions.class.php calls $AppUI->getLibraryClass("PEAR/Date") when the file loads. That method was removed in v5.

Core's w2p_Utilities_Date::isWorkingDay() requires this file whenever the module is active, so every page that calls isWorkingDay() fails: the year/month/week calendars and minicals, the date picker, task save (calcFinish()/calcDuration()), dependency shifting, Project Designer bulk moves and the cost reports. Core's guard (web2project/web2project@4ef0e61f) only covers missing files, not a file that throws.

Files: holiday_functions.class.php L14–16, holiday_settings.php L6

Fix: core still ships lib/PEAR/Date.php (w2p_Utilities_Date extends it), so drop the call or require the file directly.

Evidence: found by reading the code against master; not reproduced on a running install.
Effort: XS

Part of #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions