As the title says:

Cloning a Rules Link doesn't seem to clone the components also, thus rendering the clone option pretty useless...

Comments

cornelyus’s picture

subscribing..

Anonymous’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Category: bug » task
Priority: Normal » Major
moiseh’s picture

Issue summary: View changes
StatusFileSize
new2.09 KB

Here's my patch...

sepgil’s picture

Your patch doesn't work quite correct, since it doesn't changes the path. Rules link will show an error, when trying to save the cloned rules link.
There are also some minor code style issues:

  1. +++ b/rules_link.admin.inc
    @@ -399,6 +408,23 @@ function rules_link_form_submit(&$form, &$form_state) {
    +    ¶
    

    Trailing space

  2. +++ b/rules_link.admin.inc
    @@ -399,6 +408,23 @@ function rules_link_form_submit(&$form, &$form_state) {
    +    $condition_set = rules_link_load_condition_set($rules_link_load);  ¶
    

    Trailing space

  3. +++ b/rules_link.admin.inc
    @@ -399,6 +408,23 @@ function rules_link_form_submit(&$form, &$form_state) {
    +    drupal_set_message(t('Your Rules Link has been cloned.'));  ¶
    

    Trailing space

sepgil’s picture

Status: Active » Needs work