Skip to content
Snippets Groups Projects
Commit e6c9cd46 authored by yogeshwar's avatar yogeshwar
Browse files

E-All PickList Dependency

parent bcf11c40
No related branches found
No related tags found
2 merge requests!1233E_ALL fixes across modules for PHP 8.x,!1224E-All PickList Dependency
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
{foreach key=TARGET_VALUE item=TRANSLATED_TARGET_VALUE from=$TARGET_PICKLIST_VALUES} {foreach key=TARGET_VALUE item=TRANSLATED_TARGET_VALUE from=$TARGET_PICKLIST_VALUES}
<tr> <tr>
{foreach key=SOURCE_PICKLIST_VALUE item=TRANSLATED_SOURCE_PICKLIST_VALUE from=$SOURCE_PICKLIST_VALUES} {foreach key=SOURCE_PICKLIST_VALUE item=TRANSLATED_SOURCE_PICKLIST_VALUE from=$SOURCE_PICKLIST_VALUES}
{assign var=targetValues value=(isset($MAPPED_TARGET_PICKLIST_VALUES[$SAFEHTML_SOURCE_PICKLIST_VALUES[$SOURCE_PICKLIST_VALUE]])) ? $MAPPED_TARGET_PICKLIST_VALUES[$SAFEHTML_SOURCE_PICKLIST_VALUES[$SOURCE_PICKLIST_VALUE]] : ''} {assign var=targetValues value=(isset($MAPPED_TARGET_PICKLIST_VALUES[$SAFEHTML_SOURCE_PICKLIST_VALUES[$SOURCE_PICKLIST_VALUE]])) ? $MAPPED_TARGET_PICKLIST_VALUES[$SAFEHTML_SOURCE_PICKLIST_VALUES[$SOURCE_PICKLIST_VALUE]] : []}
{assign var=IS_SELECTED value=false} {assign var=IS_SELECTED value=false}
{if empty($targetValues) || in_array($TARGET_VALUE, $targetValues)} {if empty($targetValues) || in_array($TARGET_VALUE, $targetValues)}
{assign var=IS_SELECTED value=true} {assign var=IS_SELECTED value=true}
......
...@@ -170,7 +170,7 @@ class Vtiger_DependencyPicklist { ...@@ -170,7 +170,7 @@ class Vtiger_DependencyPicklist {
$targetValues = decode_html($adb->query_result($result, $i, 'targetvalues')); $targetValues = decode_html($adb->query_result($result, $i, 'targetvalues'));
$unserializedTargetValues = Zend_Json::decode(html_entity_decode($targetValues)); $unserializedTargetValues = Zend_Json::decode(html_entity_decode($targetValues));
$criteria = decode_html($adb->query_result($result, $i, 'criteria')); $criteria = decode_html($adb->query_result($result, $i, 'criteria'));
$unserializedCriteria = isset($criteria) ? Zend_Json::decode(html_entity_decode($criteria)) : ''; $unserializedCriteria = isset($criteria) ? Zend_Json::decode(html_entity_decode($criteria)) : array();
if(!empty($unserializedCriteria) && $unserializedCriteria['fieldname'] != null) { if(!empty($unserializedCriteria) && $unserializedCriteria['fieldname'] != null) {
$conditionValue = array( $conditionValue = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment