Template identifiers for node-edit and user-edit are both identical. I consider this wrong.
Actually this is because the user-edit link has a wrong edit identifier (copy-paste issue).
See views_data
$data['users']['edit_node'] = array(
'field' => array(
'title' => t('Edit link'),
'help' => t('Provide a simple link to edit the user.'),
'handler' => 'views_handler_field_user_link_edit',
),
);
The issue came up when
- Overriding a views-view-fields--node-edit.tpl.php
- To replace the link by an image
- Adding an l() code that uses 'node/' . $row->nid . '/edit'
- Resulting in broken user edit links
We might not be able to change the identifier in Views 6.x-2.x-dev but should correct the template suggestions.
Comments
Comment #1
dawehnerBut even change the template suggestion could cause problems.
6.x-2.x is in a only critical bugs mode, and this issue doesn't fit in this category. Let's move to 6.x-3.x and see whether it's possible to find a good solution.
Comment #2
mustanggb commented