BUG-13626 SOLVED Los campos link en un DynaForm (Form o Grid), van agregando la URL del navegador cuando estos comienzan a ejecutar los pasos de un caso en formularios relacionados.

This commit is contained in:
Roly Rudy Gutierrez Pinto
2013-12-12 10:04:28 -04:00
parent 52d463a7bd
commit cd08b4edad
2 changed files with 7 additions and 8 deletions

View File

@@ -2735,7 +2735,12 @@ class XmlForm_Field_Link extends XmlForm_Field
break;
}
$link = (!empty($value))? $value : G::replaceDataField($this->link, $v);
$link = "";
if ($this->link != "") {
$link = G::replaceDataField($this->link, $v);
} else {
$link = !empty($value) ? $value : "";
}
$labelAux1 = (!empty($label))? $label : G::replaceDataField($this->label, $v);
$labelAux2 = (!empty($label))? $label : G::replaceDataField($this->value, $v);
$onclick = G::replaceDataField($this->onclick, $v);

View File

@@ -68,12 +68,6 @@
leimnud.event.add(getField('PME_LINK'), 'blur', function() {
var valor_form = new input(getField('PME_LINK'));
getField('PME_LINK').value=getField('PME_LINK').value.replace(/ /g, '');
if(getField('PME_LINK').value==''){
valor_form.failed();
alert('Invalid URL');
} else {
valor_form.passed();
}
});
function cancel(){
currentPopupWindow.remove();