Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I wanted to export a content type for inclusion in a contrib module's config/install
folder.
I went to the admin/config/development/configuration/single/export
path on my site to do the export.
I ended up not being able to export anything, because the selector dropdowns duplicated themselves and then didn't perform any AJAX type queries to give me the data to export.
Proposed resolution
Allow the user to do exports.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#3 | duplicate-views-ui.png | 101.42 KB | yoroy |
single_export.png | 77.2 KB | Mile23 |
Comments
Comment #1
Mile23Comment #2
yoroy CreditAttribution: yoroy commentedI see UI elements getting repeated in other parts of admin as well, looks like this is a more general issue.
Comment #3
yoroy CreditAttribution: yoroy commentedI noticed it in https://www.drupal.org/node/1997692#comment-9389129, where drag/drop causes submit buttons to duplicate.
Also, in views, when creating a new view, filling out the path for a new page, when that field loses focus it duplicates parts of the interface:
Comment #4
BerdirI would assume that this is related to #2384545: $element['#ajax']['callback'] is broken, hence breaking e.g. inserting images in CKEditor. Not sure if it is a duplicate, as it should still work without #ajax?
Comment #5
Wim LeersConfirming that this is a duplicate of #2384545: $element['#ajax']['callback'] is broken, hence breaking e.g. inserting images in CKEditor.
From
\Drupal\config\Form\ConfigSingleExportForm
:It's not designed to work that way:
Comment #6
tim.plunkettIs it a bug that it doesn't work with JS disabled completely? I forget what our policy is for that (it is administration, not end-user facing)