Custom create button not generating proper links for button to external component #255
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#255
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Expected result
in /administrator/components/com_kr_books_reviews/models/fields/cancelreason.php in the getInput() function,
around line 85:
and around line 117:
var url = 'index.php?option=com_kr_books_system&view=reviews_cancel_reasons&task=reviews_cancel_reason.edit&id='+value+'".$refJ."';
Actual result
around line 85:
and around line 117:
var url = 'index.php?option=com_kr_books_reviews&view=reviews_cancel_reasons&task=reviews_cancel_reason.edit&id='+value+'".$refJ."';
System information (as much as possible)
Additional comments
It appears for some reason, that the component name isn't getting used as set in the custom field parameters and it is defaulting to the current component.
Hi, can you please provide the XML field definition that you wrote to build the custom field?
Here's the xml field definition for the custom field. This is in the com_kr_books_reviews component:
Okay I see the bug... will fix it in next release 👍
Okay the patch is out, please test the latest staging branch to see if the issue is resolved at your side.
Yes. Works perfectly now.
Thanks!
Actually, possibly responded too quickly.
I am getting an error once on that 'external' page (in the 'system' component) upon either saving a new entry or closing the form:
404 View not found [name, type, prefix]: reviews_assignment, html, kr_books_systemView
I haven't had a chance yet to track that down, but looks like it is somehow loosing it's referral location.
Hmmm this could be an issue. Will have to look at improving the whole referral concept. For now it seems like when targeting a external component, to remove referrals.
Okay please test, as I have update the concept to use the default return option if a external component is detected in the custom field. Hope this resolves the issue, let me know.