Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when shrinking holiday interval #538

Open
jaragunde opened this issue Dec 8, 2021 · 0 comments
Open

Error when shrinking holiday interval #538

jaragunde opened this issue Dec 8, 2021 · 0 comments

Comments

@jaragunde
Copy link
Member

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant