Skip to content

New week_view.php, year_view.php and cleanup_functions.php. - #287

Closed
Themoulos wants to merge 7 commits into
web2project:masterfrom
Themoulos:patch-1
Closed

Themoulos wants to merge 7 commits into
web2project:masterfrom
Themoulos:patch-1

Conversation

@Themoulos

Copy link
Copy Markdown

Changed so that it displays the list of tasks and events correctly in week_view and that each task is colored acconrding to its state ("late", "has finished" etc. MUST be used with NEW cleanup_functions.php, there are changes there as well.

Themoulos added 7 commits May 12, 2015 20:20
Changed so that it displays the list of tasks and events correctly in week_view and that each task is colored acconrding to its state ("late", "has finished" etc. MUST be used with NEW cleanup_functions.php, there are changes there as well.
so that the changes in week_view.php and year_view.php work.
in order to show week_view.php and year_view.php correctly
...to show each task according to the task status (e.g. "completed", "started" etc.)
@Themoulos Themoulos closed this May 13, 2015
@Themoulos Themoulos reopened this May 13, 2015
@Themoulos

Copy link
Copy Markdown
Author

I finally figured out how to create a good Pull Request...

@Themoulos Themoulos changed the title New week_view.php New week_view.php, year_view.php and cleanup_functions.php. May 13, 2015
caseysoftware added a commit that referenced this pull request Oct 20, 2026
getTaskLinks() and getEventLinks() stopped taking $links by reference in
707df25 and return the combined array instead, but the callers were not
all updated:

- The month view, its mini calendars, the week view and the year view
  merged the two with `$links += getEventLinks(...)`. PHP's array union
  keeps the left-hand value for a key that is already set, so every day
  that had a task lost its events.
- The day view's three mini calendars and its Tasks tab ignored the
  return value, so they never showed anything.

Pass the task links into getEventLinks() and keep what it returns. The
previous-month mini calendar on the month view now also asks for minical
links, like the other mini calendars.

Fixes the event part of #287.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01U4Tb5HTf6cRoQn1idicyjt
@caseysoftware

Copy link
Copy Markdown
Member

Closing: this is resolved in 5.0.0 development (dev-5.0.0, commit 817c316). The month, week and year views were merging events with $links += ..., which dropped events on any day that also had a task; the day view's mini calendars and Tasks tab were discarding the results entirely. All of those now keep both tasks and events. The task status colors aren't included, since the rest of this PR no longer applies to the current code. Thanks for tracking this down.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants