';
@@ -4155,6 +4155,13 @@ abstract class ComponentbuilderHelper
public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')
{
+ // do some table foot work
+ $external = false;
+ if (strpos($table, '#__') !== false)
+ {
+ $external = true;
+ $table = str_replace('#__', '', $table);
+ }
// check if string is JSON
$result = json_decode($value, true);
if (json_last_error() === JSON_ERROR_NONE)
@@ -4167,9 +4174,19 @@ abstract class ComponentbuilderHelper
$names = array();
foreach ($result as $val)
{
- if ($name = self::getVar($table, $val, $id, $name))
+ if ($external)
{
- $names[] = $name;
+ if ($name = self::getVar(null, $val, $id, $name, '=', $table))
+ {
+ $names[] = $name;
+ }
+ }
+ else
+ {
+ if ($name = self::getVar($table, $val, $id, $name))
+ {
+ $names[] = $name;
+ }
}
}
if (self::checkArray($names))
diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini
index ba9d58d1f..96ee49b2d 100644
--- a/admin/language/en-GB/en-GB.com_componentbuilder.ini
+++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini
@@ -897,7 +897,7 @@ COM_COMPONENTBUILDER_ALL_OF_THESE_PACKAGES_ARE_A_FULLY_DEVELOPEDMAPPED_COMPONENT
COM_COMPONENTBUILDER_ALL_THE_LANGUAGES_FOUND_IN_JOOMLA_WERE_SUCCESSFULLY_IMPORTED="All the languages found in Joomla were successfully imported."
COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work on this page will be lost, are you sure you want to continue?"
COM_COMPONENTBUILDER_ALWAYS_ADD="Always Add"
-COM_COMPONENTBUILDER_ALWAYS_INSURE_THAT_YOU_HAVE_YOUR_LOCAL_COMPONENTS_BACKED_UP_BY_MAKING_AN_EXPORT_OF_ALL_YOUR_LOCAL_COMPONENTS_BEFORE_IMPORTING_ANY_NEW_COMPONENTS_SMALLMAKE_BSUREB_TO_MOVE_THIS_ZIPPED_BACKUP_PACKAGE_OUT_OF_THE_TMP_FOLDER_BEFORE_DOING_AN_IMPORTSMALLBR_IF_YOU_ARE_IMPORTING_A_PACKAGE_OF_A_THREERD_PARTY_JCB_PACKAGE_DEVELOPER_BMAKE_SURE_IT_IS_A_REPUTABLE_JCB_PACKAGE_DEVELOPERSB="Always insure that you have your local components backed up, by making an export of all your local components before importing any new components. (Make SURE to move this zipped backup package out of the tmp folder before doing an import) If you are importing a package of a 3rd party JCB package developer, make sure it is a reputable JCB package developers!"
+COM_COMPONENTBUILDER_ALWAYS_INSURE_THAT_YOU_HAVE_YOUR_LOCAL_COMPONENTS_BACKED_UP_BY_MAKING_AN_EXPORT_OF_ALL_YOUR_LOCAL_COMPONENTS_BEFORE_IMPORTING_ANY_NEW_COMPONENTS_SMALLMAKE_BSUREB_TO_MOVE_THIS_ZIPPED_BACKUP_PACKAGE_OUT_OF_THE_TMP_FOLDER_BEFORE_DOING_AN_IMPORTSMALLBR_IF_YOU_ARE_IMPORTING_A_PACKAGE_OF_A_THREERD_PARTY_JCB_PACKAGE_DEVELOPER_BMAKE_SURE_IT_IS_A_REPUTABLE_JCB_PACKAGE_DEVELOPERSB_A_SFIND_OUT_WHYA="Always insure that you have your local components backed up, by making an export of all your local components before importing any new components. (Make SURE to move this zipped backup package out of the tmp folder before doing an import) If you are importing a package of a 3rd party JCB package developer, make sure it is a reputable JCB package developers!Find out why!"
COM_COMPONENTBUILDER_ANY_SELECTION_ONLY_FOUR_LISTRADIOCHECKBOXESDYNAMIC_LIST="Any Selection (only 4 list/radio/checkboxes/dynamic_list)"
COM_COMPONENTBUILDER_AN_ERROR_HAS_OCCURRED="An error has occurred"
COM_COMPONENTBUILDER_ARCHIVED="Archived"
@@ -936,7 +936,6 @@ COM_COMPONENTBUILDER_BIMAGESB_NOT_MOVED_TO_CORRECT_LOCATION="Images not m
COM_COMPONENTBUILDER_BMULTIPLE_FIELD_REPEATABLE_MODEB_IDS_MISMATCH_IN_BFIELDSB_AND_WAS_EMREMOVEDEM_FROM_THE_FIELD="Multiple Field (repeatable mode) id:%s mismatch in field:%s, and was removed from the field."
COM_COMPONENTBUILDER_BSBS_IN_BSB_HAS_ID_MISMATCH_SO_THE_BSB_WAS_REMOVED="%s->%s in %s has id mismatch. So the %s was removed!"
COM_COMPONENTBUILDER_BSB_COULD_NOT_BE_IMPORTEDS="%s could not be imported%s"
-COM_COMPONENTBUILDER_BSB_EMCOMPONENT_DETAILSEM="%scomponent details"
COM_COMPONENTBUILDER_BSB_HAS_BEEN_IMPORTED="%s has been imported!"
COM_COMPONENTBUILDER_BSB_HAS_BEEN_UPDATED="%s has been updated!"
COM_COMPONENTBUILDER_BSB_WAS_FOUND="%s was found!"
@@ -3623,14 +3622,12 @@ COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC=" Allows users in this group to edit ver
COM_COMPONENTBUILDER_EMAIL="Email"
COM_COMPONENTBUILDER_EMAIL_S="Email: %s"
COM_COMPONENTBUILDER_EMAIL_WITH_THE_NEW_KEY_WAS_SEND="Email with the new key was send"
-COM_COMPONENTBUILDER_EMAUTHOREM_BSB="Author: %s"
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="Company:%s"
-COM_COMPONENTBUILDER_EMCOMPANY_NAMEEM_BSB="Company Name: %s"
COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB="Copyright:%s"
-COM_COMPONENTBUILDER_EMEMAILEM_BSB="Email: %s"
+COM_COMPONENTBUILDER_EMEMAILEM_BSB="Email:%s"
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="License:%s"
COM_COMPONENTBUILDER_EMOWNEREM_BSB="Owner:%s"
-COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="Website: %s"
+COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="Website:%s"
COM_COMPONENTBUILDER_EQUAL="Equal"
COM_COMPONENTBUILDER_EQUAL_MEANS_THAT_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_AND_YOUR_LOCAL_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_THE_SAME_BCREATIONB_AND_BMODIFIED_DATEB="Equal means that the community snippet (with the same name, library and type) and your local snippet (with the same name, library and type) has the same creation and modified date."
COM_COMPONENTBUILDER_ERROR="Error"
@@ -4188,7 +4185,10 @@ COM_COMPONENTBUILDER_HIDE="Hide"
COM_COMPONENTBUILDER_HTWOCURL_NOT_FOUNDHTWOPPLEASE_SETUP_CURL_ON_YOUR_SYSTEM_OR_BCOMPONENTBUILDERB_WILL_NOT_FUNCTION_CORRECTLYP="
Curl Not Found!
Please setup curl on your system, or componentbuilder will not function correctly!