Fixed linking issue, improved the new helpers to not hard code the component name to them.
This commit is contained in:
@ -12090,7 +12090,7 @@ class Interpretation extends Fields
|
||||
&& isset($item['id_code']))
|
||||
{
|
||||
// build GUID link
|
||||
if ($item['custom']['id'] !== 'id')
|
||||
if (isset($item['custom']['id']) && $item['custom']['id'] !== 'id')
|
||||
{
|
||||
// link to that linked item
|
||||
return 'index.php?option=' . $item['custom']['component'] . '&view='
|
||||
@ -12101,7 +12101,7 @@ class Interpretation extends Fields
|
||||
// link to that linked item
|
||||
return 'index.php?option=' . $item['custom']['component'] . '&view='
|
||||
. $item['custom']['views'] . '&task=' . $item['custom']['view']
|
||||
. '.edit&id=<?php echo $item->' . $item['id_code'] . '_id; ?>'
|
||||
. '.edit&id=<?php echo $item->' . $item['id_code'] . '; ?>'
|
||||
. $ref;
|
||||
}
|
||||
elseif (isset($item['custom'])
|
||||
|
@ -76,12 +76,17 @@ use VDM\Joomla\Utilities;
|
||||
abstract class ComponentbuilderHelper
|
||||
{
|
||||
/**
|
||||
* Adding the utilities trait to this class
|
||||
*
|
||||
* @deprecated 4.0 - Check the trait methods for details, a legacy implementation
|
||||
*/
|
||||
* Adding the utilities trait to this class
|
||||
*
|
||||
* @deprecated 4.0 - Check the trait methods for details, a legacy implementation
|
||||
*/
|
||||
use Utilities;
|
||||
|
||||
/**
|
||||
* get the Component Code Name
|
||||
*/
|
||||
public static $ComponentCodeName = 'componentbuilder';
|
||||
|
||||
/**
|
||||
* Composer Switch
|
||||
*
|
||||
|
Reference in New Issue
Block a user