Problem/Motivation
At the moment the admin page for Quick node clone at admin/config/quick-node-clone only seems to list custom fields which are allowed to be selected as excluded when a contenet is cloned.
We would like to also make sure that any cloned content would not carry any core field settings like Sticky at top of lists or Promoted to front page to be cloned.
Basically we have limited the user roles which can promote content to front page but it seems like it's possible to bypass this permission by cloning the content.
Steps to reproduce
1. Create a new content and mark it as Sticky at top of lists.
2. Clone it.
3. Make sure that the Sticky at top of lists setting was also cloned.
Proposed resolution
Add also the core fields to the list of possible excluded fields in the admin user interface and unset those fields from the form.
Remaining tasks
-
User interface changes
Add the excluded core fields to the admin user interface.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3358988-1.patch | 4.76 KB | rishabjasrotia |
Issue fork quick_node_clone-3358988
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
tommim commentedMR adds possibility to include / exclude Sticky at top of list and Promoted to front page fields from Quick Node Clone settings.
Gets default values from node bundle and if not selected in settings, uses them.
Comment #6
rishabjasrotia commentedTested patch working fine in plain Drupal setup.