jlbandeira 0 Posted March 28, 2015 Report Share Posted March 28, 2015 Hi there, I created a custom module and added a "Summary" widget to the users profile page, but when clicking the gridview items "name" atribute link, the platform redirects to the user profile page instead of redirecting to the item view form. The link the platform is creating is ".../profile/[id]" instead of ".../custommodule/[id]". I'm using X2Engine V5.0.4, but I've tried to replicate this behaviour using the X2Engine website demo (v5.0.5) and this bug (in my opinion) stills happens. Does anyone have detected the same issue or knows a possible solution to this? Thanks in advance. Quote Link to post Share on other sites
fali 0 Posted March 30, 2015 Report Share Posted March 30, 2015 Hi jlbandeira, I think its x2 bug, and to fix this you need to customize the code.I have fixed it changing a line of code hereLine # 118 protected\components\sortableWidget\profileWidgets\TemplatesGridViewProfileWidget.php Replace 'value'=>'CHtml::link($data->name,array("view","id"=>$data->id))',to'value'=>'$data->link', Regards Quote Link to post Share on other sites
X2Derek 66 Posted March 30, 2015 Report Share Posted March 30, 2015 Hi jlbandeira, I've created a bug report (http://x2software.com/index.php/bugReports/2343) so that you can track this issue. We should have it fixed before 5.0.6. Thanks,Derek Quote Link to post Share on other sites
X2Alex 7 Posted March 30, 2015 Report Share Posted March 30, 2015 Fali, thanks for this, I will look at this now. 1 Quote Link to post Share on other sites
fali 0 Posted March 31, 2015 Report Share Posted March 31, 2015 Hi Derek, Please keep in mind while fixing this bug in upcoming version that on selecting tool from column selector the view/update/delete buttons also directs to profile page instead of the relevant pages. This happens for all summary widgets (both x2 built in and custom modules). Regards, Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.