Skip to content

Error when shrinking holiday interval #538

@jaragunde

Description

@jaragunde

In holidayManagement.php, steps to reproduce:

  1. Create a holiday period between Monday and Friday, and save it.
  2. Click on Friday, then on Wednesday.

Expected: period between Wed and Fri is set.
Actual: range disappears, error shows up in the console:

TypeError: day.attributes[idx] is undefined
    onDayClick http://localhost/phpreport/web/js/holidayManagement.js:297
    VueJS 4
    onDayClick http://localhost/phpreport/web/vuejs/v-calendar.2.3.2.min.js:1
    VueJS 4
    click http://localhost/phpreport/web/vuejs/v-calendar.2.3.2.min.js:1
    VueJS 24
    refreshPages http://localhost/phpreport/web/vuejs/v-calendar.2.3.2.min.js:1
    refreshPages http://localhost/phpreport/web/vuejs/v-calendar.2.3.2.min.js:1
    move http://localhost/phpreport/web/vuejs/v-calendar.2.3.2.min.js:1
    r http://localhost/phpreport/web/vuejs/v-calendar.2.3.2.min.js:1
    VueJS 17
vue.min.js:6:11762

Some additional facts:

  • It doesn't happen if you click on Monday, then on Wednesday.
  • It does happen if you click on Monday and then on Friday the week before.

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