You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've create several forms and dynamic gets on a component.
I have a new dynamic get (getItem) and a Site View that uses that getItem.
I'm using a custom form that provides a value that is basically just a simple search form, then then passes the value onto the dynamic get to search the table. (That dynamic Get has a Main Source of a Back-end View).
In the Site View's model file, in the getItem function, it has the db query that it builds.
After that it has the "Load the results as a stdClass object section and then a section of code that handles an empty result set:
if (empty($data)
And in that conditional section is has a line to redirect on no returned data:
$app->redirect(JRoudte::_(''));
The problem is that the link added in the spot is redirecting to a completely different view, and it is expecting other data and causing errors.
I am able to use a manual process to change that code to properly re-direct.
HOWEVER, I'd really like to know HOW that gets set and how to change that within JCB so that I don't have to do the manual replace process.
I have not gone through the JCB code itself to see where this might be happening (I don't know the JCB code that well).
Just wondering if anyone knows how/where/why it is pulling in some other completely unrelated path to a different view.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've create several forms and dynamic gets on a component.
I have a new dynamic get (getItem) and a Site View that uses that getItem.
I'm using a custom form that provides a value that is basically just a simple search form, then then passes the value onto the dynamic get to search the table. (That dynamic Get has a Main Source of a Back-end View).
In the Site View's model file, in the getItem function, it has the db query that it builds.
After that it has the "Load the results as a stdClass object section and then a section of code that handles an empty result set:
if (empty($data)
And in that conditional section is has a line to redirect on no returned data:
$app->redirect(JRoudte::_(''));
The problem is that the link added in the spot is redirecting to a completely different view, and it is expecting other data and causing errors.
I am able to use a manual process to change that code to properly re-direct.
HOWEVER, I'd really like to know HOW that gets set and how to change that within JCB so that I don't have to do the manual replace process.
I have not gone through the JCB code itself to see where this might be happening (I don't know the JCB code that well).
Just wondering if anyone knows how/where/why it is pulling in some other completely unrelated path to a different view.
Beta Was this translation helpful? Give feedback.
All reactions