Skip to content

Unable to view Oct 21 2019 timecard #430

Open

Description

@bridget-tan

Can't update or view the Oct 21 2019 timecard. When I click on "View All Details" or "Edit", I get this error message:
oct21

Activity

  1. changed the title [-]Unable to view Oct 21 timecard[/-] [+]Unable to view Oct 21 2019 timecard[/+] on Mar 9, 2020
  2. bridget-tan commented on Mar 9, 2020

    @bridget-tan
    Author

    This isn't that important anymore since the hours I needed to see weren't on that particular timecard, but I'm curious if this can be fixed.

  3. timparenti commented on Mar 9, 2020

    @timparenti
    Contributor

    What's the specific timecard ID number (from the URL)?

  4. bridget-tan commented on Mar 9, 2020

    @bridget-tan
    Author

    190

  5. timparenti commented on Mar 9, 2020

    @timparenti
    Contributor

    In the production database, one of the entries on timecard 190 corresponds to eventdate ID 5483, which appears to have been deleted from the eventdates table. The application error is the result of a failure to nil-check the eventdate record before trying to access its title for display:

    <td><%= link_to timecard_entry.eventdate.event.title, timecard_entry.eventdate.event %> - <%=timecard_entry.eventdate.description %></td>

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