Once the webform is completed and published, I can not go back to edit the components. I can edit other details, just not the components. It worked fine before I did the update. Please advise or share possible fixes.

Comments

Rob_S’s picture

Title: Can not edot webform components » Can not edit webform components
fumanchu182’s picture

I am having the same issue as well. I went into webform.module and looked at the strings that are used for user permissions and have found the following code:

      $items[] = array(
        'path' => 'node/'. $nid .'/edit/components',
        'title' => t('Form components'),
        'callback' => 'webform_components',
        'callback arguments' => array($node),
        'access' => node_access('update', $node),
        'weight' => 2,
        'type' => MENU_LOCAL_TASK,
      );

I dug deeper into the function node_access() as this seemed to be where the issue lies but was not (if you change that line to 'access'=>TRUE you will see that the tab is still not showing.

I have tinkered with the menu setup in webform.module and have not come across anything that would remedy this.

fumanchu182’s picture

Continuing with the digging into the module I have discovered that if I change 'path' => 'node/'. $nid .'/edit/components', to 'path' => 'node/'. $nid .'/components', the tab comes back. It seems to be a menu issue. I can't dig any further as this solves the issue for me for now but best of luck and I look forward to seeing a full explanation.

Rob_S’s picture

Thanks for this fix. I edited the webform.module as suggested above, and sure enough the tab for components is now visible- which is good. BUT when I click on the edit link for a specific component (email for example), it takes me to the edit page where no form components are available for editing. Any ideas how to resolve this??

quicksketch’s picture

Status: Active » Closed (duplicate)
resting’s picture

I had the same prob. thanks to my colleague i just need to paste this code in page.tpl.php:

<?php if (isset($tabs2)): print $tabs2; endif; ?>

hope it works for people who faces the same problem out there..

Bryson’s picture

Where in the file does this snippet need to go? I can find the file, I'm just not sure if the code needs to be placed in a particular position.

Observer123’s picture

It seems in webform-7.x-3.19 still have this issue. When enter the path mannualy it been shown.
(like this node/8/components/edit/)

prezaeis’s picture

Version: 5.x-2.1.3 » 7.x-4.0-alpha1

Anyone found a fix for this? Im having this issue in version 7
One day it just disappeared, even if i put in the URL like node/8/components/edit it wont show, it just takes me to the webform itself

anyone?