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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wtchan created an issue. See original summary.

myLies’s picture

Fix changing options in configuration page.
I hope this helps

myLies’s picture

Status: Active » Needs review
Bcwald’s picture

This patch works in terms of letting you select differnt options in the admin, however the options

"Confirmation mode when using the "Save as a new node then edit" method
" do not work.

It still uses the prepopulate method with no save.

asrob’s picture

Status: Needs review » Needs work

I can confirm that Bcwald said. I can see a new option in the admin but it does not work.

Boobaa’s picture

The patch allows saving the configuration settings, but none of them are respected. Additionally, this is related to #2712079: Warning: Invalid argument supplied for foreach() .

drupalfan2’s picture

Warning 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.

pwolanin’s picture

The 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.

pwolanin’s picture

Actually - the config had a correct name space, so adding more prefix is not right $config = $this->config('node_clone.settings');

pwolanin’s picture

FileSize
7.88 KB

Here's a partially working patch with more fixes, but not resetting the publishing options correctly yet.

pwolanin’s picture

Status: Needs work » Needs review
FileSize
969 bytes
8.02 KB

ok, small additional fix and code comment copied from the node type form.

mhavelant’s picture

#11 fixed it for me, thanks!