Breadcrumb links [message #3056] |
Mon, 27 August 2012 11:16 ![Go to next message Go to next message](/theme/default/images/down.png) |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
Not sure if I have discovered a bug, or am just mis-using the framework:
I have a list2 screen which then allows navigation to a further list2 screen (so grandparent, parent, child) but don't really want to use a list3 pattern.
However, when I click on the breadcrumb to go back to the parent list2 screen, the grandparent list3 screen is diplayed with an error that nothing has been selected.
Is it necessary to use a list3 pattern?
Edit: This can be demonstrated in the DICT subsystem when going from tables to columns. If you then click on the tables breadcrumb you are returned to the database list with the error message 'Please select an item first'.
[Updated on: Mon, 27 August 2012 11:23] Report message to a moderator
|
|
|
Re: Breadcrumb links [message #3057 is a reply to message #3056] |
Tue, 28 August 2012 11:55 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
This is actually a bug
The fix is as follows - in file 'include.session.inc' is a function called 'scriptNext()', and at line 2153 (or thereabouts) you shoud see the following code:
if (!empty($current_task)) {
$script_vars['current_task'] = $current_task;
} // if
Change this to the following:
$script_vars['current_task'] = $GLOBALS['task_id'];
Try this and check that it works OK.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|