04-29-2016, 12:55 PM
Thanks it works now
i just notice another issue :
i have created a link between Project and potential :
under project, field : potential_id , uitype = 10
when i use the popup window, the javascript function is set to set_return(...)
i have changed it to :
$forform = vtlib_purify($_REQUEST['form']);
$forform = htmlspecialchars($forform, ENT_QUOTES, $default_charset);
$forfield = vtlib_purify($_REQUEST['forfield']);
$forfield = htmlspecialchars($forfield, ENT_QUOTES, $default_charset);
//$value = '<a href="javascript:window.close();" onclick=\'set_return("' . $entity_id . '", "' . nl2br(decode_html($slashes_temp_val)) . '");\'';
$value = "<a href='javascript:if (document.getElementById(\"closewindow\").value==\"true\") {window.close();}' onclick='return vtlib_setvalue_from_popup($entity_id, \"". nl2br(decode_html($slashes_temp_val)) . "\", \"$forfield\"".(empty($forform)?'':',"'.$forform.'"').")'"; //MSL
in ListViewUtils.php
i don't know what other implications it has if i disable the set_return function
i just notice another issue :
i have created a link between Project and potential :
under project, field : potential_id , uitype = 10
when i use the popup window, the javascript function is set to set_return(...)
i have changed it to :
$forform = vtlib_purify($_REQUEST['form']);
$forform = htmlspecialchars($forform, ENT_QUOTES, $default_charset);
$forfield = vtlib_purify($_REQUEST['forfield']);
$forfield = htmlspecialchars($forfield, ENT_QUOTES, $default_charset);
//$value = '<a href="javascript:window.close();" onclick=\'set_return("' . $entity_id . '", "' . nl2br(decode_html($slashes_temp_val)) . '");\'';
$value = "<a href='javascript:if (document.getElementById(\"closewindow\").value==\"true\") {window.close();}' onclick='return vtlib_setvalue_from_popup($entity_id, \"". nl2br(decode_html($slashes_temp_val)) . "\", \"$forfield\"".(empty($forform)?'':',"'.$forform.'"').")'"; //MSL
in ListViewUtils.php
i don't know what other implications it has if i disable the set_return function