After add a point field to entity type, you must clear the cache to see the "point tab" on entity page

Created on 7 January 2019, about 6 years ago
Updated 17 January 2024, about 1 year ago

The route 'entity.' . $entity_type_id . '.points.movement.' . $field_name and "local task" on entity din't exist after add a field to Node.

But If we clear the cache, then I'll see the tab

I'm a new user on points module.After I install Drupal/point, add a point field on Node/article, create an article, edit the node to change the point field several times
But I can't find any information about the points changing information, I even think the module can't be used, Then I reinstall Drupal, reinstall point several times, failed times and times......

Finally I read the code, find the code about the route 'entity.' . $entity_type_id . '.points.movement.' . $field_name and task, and realized it must be take effect after clear the cache after add point field.But the doc didn't write this,
It waste much time of me, and will prevent many potential user to use this module

So we should

  1. Add "After add a point field to entity, you must clear the cache" to doc
  2. Or add some code to clear the cache automatically after a "point" field was added to an entity_type.
πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Documentation

Created by

πŸ‡¨πŸ‡³China lawxen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024