Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
suggestion : DetailView enable uitype 10 change
#5
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
Reply


Messages In This Thread
RE: suggestion : DetailView enable uitype 10 change - saidmsl - 04-29-2016, 12:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)