The same content profile nodes are handled differently when accessed under different urls

michi20 - November 5, 2009 - 11:17
Project:Content Profile
Version:6.x-1.0-beta4
Component:Base module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

When directly editing my content profile node under the path /node/nid/edit (where nid is the node id), then the buttons 'Delete' and 'Preview' are active. When I look at the code in content_profile_form_alter I think it is intended that these buttons are not active? Apart from that, when hitting the 'Save' button, I am not redirected to my user profile. Might this be a bug?

The code in the elseif-part of content_profile_form_alter does only check the path to decide wheter these buttons should be disabled or not resp. whether the user should be redirected to his user profile. Wouldn't it be better if the code just disables these buttons and sets a redirect to the corresponding user profile for ALL content profile nodes (independently of the path)? It then would also be possible to eliminate the drupal_get_destination calls in the theme layer.

 
 

Drupal is a registered trademark of Dries Buytaert.