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.
The configuration options cannot be changed. Only the default option "Pre-populate the node form fields" is effective. Also, the toggle for publishing options is missing.
Comment | File | Size | Author |
---|---|---|---|
#11 | 2724919-11.patch | 8.02 KB | pwolanin |
#11 | increment-2724919-11.txt | 969 bytes | pwolanin |
#10 | 2724919-8.patch | 7.88 KB | pwolanin |
#2 | fix_set_data_on_admin_page-2724919-2.patch | 791 bytes | myLies |
Comments
Comment #2
myLies CreditAttribution: myLies as a volunteer commentedFix changing options in configuration page.
I hope this helps
Comment #3
myLies CreditAttribution: myLies as a volunteer commentedComment #4
Bcwald CreditAttribution: Bcwald commentedThis patch works in terms of letting you select differnt options in the admin, however the options
It still uses the prepopulate method with no save.
Comment #5
asrobI can confirm that Bcwald said. I can see a new option in the admin but it does not work.
Comment #6
BoobaaThe patch allows saving the configuration settings, but none of them are respected. Additionally, this is related to #2712079: Warning: Invalid argument supplied for foreach() .
Comment #7
drupalfan2 CreditAttribution: drupalfan2 as a volunteer commentedWarning disappeared and config settings is possible after applying both related patches.
But the configuration settings is still ignored: is saved now but has no effect.
Comment #8
pwolanin CreditAttribution: pwolanin as a volunteer and at SciShield commentedThe prefix should "node_clone" - do we need to fix the form?
@drupalfan2 - yes, the other method is not yet implemented, so maybe need to hide it.
Comment #9
pwolanin CreditAttribution: pwolanin as a volunteer and at SciShield commentedActually - the config had a correct name space, so adding more prefix is not right
$config = $this->config('node_clone.settings');
Comment #10
pwolanin CreditAttribution: pwolanin as a volunteer and at SciShield commentedHere's a partially working patch with more fixes, but not resetting the publishing options correctly yet.
Comment #11
pwolanin CreditAttribution: pwolanin as a volunteer and at SciShield commentedok, small additional fix and code comment copied from the node type form.
Comment #12
mhavelant CreditAttribution: mhavelant at Brainsum for Tieto commented#11 fixed it for me, thanks!