Use case
1. Install Entity Construction Kit and Pathauto Entities modules
2. Create few (at least 2) custom entity types
3. Enable those entity types for use with Pathauto (/admin/config/search/path/entities)
4. On Bulk Update page only one custom entity type is displayed, instead of all created in pt 2.
Issue
#options
in $form['update']
form element in pathauto_bulk_update_form()
are keyed by batch_update_callback
value, which is the same for all entity types created using ECK - which means that regardless how many entity types are created (and enabled to be used with Pathauto), only the last one is displayed in the form.
Proposed solution
Key mentioned #options
by keys received from module_invoke_all('pathauto', 'settings')
call.
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#4 | settings.txt | 789 bytes | maciej.zgadzaj |
#3 | pathauto-custom_entities_bulk_generate-2124379-3.patch | 2.26 KB | maciej.zgadzaj |
#1 | pathauto-custom_entities_bulk_generate-2124379-1.patch | 1.4 KB | maciej.zgadzaj |
Comments
Comment #1
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedComment #3
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedTests updated now as well, plus key values changed slightly to avoid
0
keys, which break functionality.Comment #4
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedAnd by the way (although slightly off-topic), out of my sheer curiosity, is there any specific reason why
$settings
are not passed to batch's$operations
in bulk update? (see attached "patch")