Following #2883735: Convert the number field to be configurable, d.o. went offline when the commit was pushing to d.o., there was some data corruption, which makes the related commits not showing anywhere on d.o., but the commit exists in git repo.

We need to make the default points field non-deletable.

Issue fork points-2884457

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

skyredwang created an issue. See original summary.

dravenk’s picture

Assigned: Unassigned » dravenk
Status: Active » Needs review
StatusFileSize
new393 bytes

Done . thanks.

skyredwang’s picture

Status: Needs review » Needs work

No. we cannot lock it, because the min, max, etc. settings are useful for site builders.

joshmiller’s picture

Version: » 8.x-1.x-dev
Related issues: +#806102: Locked fields can change the widget but not settings

Settings should be editable on locked fields. They're not. It's a bug.

#806102: Locked fields can change the widget but not settings

lawxen’s picture

We can define a RouteSubscriber to delete the route of /admin/structure/point_type/default/edit/fields/point.default.points/delete

lawxen’s picture

Assigned: dravenk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.17 KB

Add a custom access to route "entity.field_config.point_field_delete_form"
If the field name is points, then forbid it.

AstonVictor made their first commit to this issue’s fork.

astonvictor’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Status: Needs review » Fixed

Created and merged a new MR.

Removed an access to delete the point field.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.