Skip to content

Instantly share code, notes, and snippets.

@dedurus
Last active October 9, 2022 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dedurus/af47d3831603b38924cfa0487233997a to your computer and use it in GitHub Desktop.
Save dedurus/af47d3831603b38924cfa0487233997a to your computer and use it in GitHub Desktop.
SCA Bug Tracker
#### Patron > View
1. Patron details are automatically loaded when scrolling patron's list
**ONLY IN SPECIFIC ACTIONS COMBO** (after deleting a patron)
- Details:
Line 727: Code below is called twice on scroll, and the second time `loadFirst` is `true`
```
.on('draw.dt', function () {
setTimeout(function () {
redraw_dt()
if (loadFirst) {
$($("#demo-dt-selection tbody tr")[0]).trigger('click')
}
$.fn.overlay('hideAll')
}, 500)
})
```
2. In multilocation, when no patrons are loaded intially or found after a search, changing location or scope (All / Selected only) will trigger patron list endpoint and if there are results, they won't be rendered (still **No patrons found** message in DT list)
#### Circulation > View
1. Authorize Check-OUTs will not work on second try (two subsequent check-outs with authorization). Reaseon: duplicate CSS ID for Auth-Override button
2. Check-OUT with aouthorization that are `completed: false` will not clear and focus check-in field
#### Settings > Circulation > Calendar
1. Line 172
`end_date_formatted = moment(calEvent.endDate, "YYYY-MM-DDTHH:mm:ss").format(viewDateFormat);`
`end_date_formatted` returns `moment()` "Invalid Date" when `calEvent.endDate = null`
> This is probably only for events that were added before multi-day events were implemented
#### Settings > Patron > Notices
Patorn notice list is not reloded when **All Locations / Selected Locations Only** is toggled in multilocation libraries
#### Dashboard : Calendar
1. Events are loaded for the previous month even if the current month is sent in the payload.
Reloading events returns current month's events (/api/dashboard/calendar?year=2022&month=10)
Reloading page after reloading events returns previous month events again (/api/dashboard/calendar?year=2022&month=10&refresh=true)
**NOTE** Currently in `dev` the API is calling previous month. This is fixed in `SCID_55774_FullCalendar_Update` branch but *not merged yet*!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment