Allow disable insert in insert_media submodule

Created on 26 August 2022, about 2 years ago
Updated 7 February 2023, almost 2 years ago

Problem/Motivation

Now if you enable insert_media module, all media fields will have the insert button. Now there is'nt any options to disable it.

Steps to reproduce

If you try to disable for one field is not allowed.
Reasons:
- Now if you don't select any options in form display third party settings, then, in the background, the default view mode will be enable like a view mode candidate.
- There isn't any choice to set empty default_view mode field.

Proposed resolution

Seeing the behaviour in the insert.module with files and image files, the behaviour is don't mark the default view_mode like enabled if there isn't any choices selected.

So, now I'm goint to develop the same behaviour, if you don't enable any view mode options, the insert button will not appear.

Remaining tasks

Attach the patch and review it.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain jansete

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

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