Requesting /bat_api/rest/calendar-events returns HTTP 500:
Error: Call to undefined method Drupal\bat_event\Entity\EventType::usesStates()
in EventsRestResource->get() (line 196)
usesStates() does not exist on EventType. The correct method is
getFixedEventStates(), already used later in the same method.
Fix:
- $store_constant = $this->eventType->usesStates()
+ $store_constant = $bat_event_type->getFixedEventStates()
? DrupalDBStore::BAT_STATE
: DrupalDBStore::BAT_EVENT;
Comments
Comment #3
afagioliComment #4
afagioliComment #6
afagioli