Parcourir la source

fixed www_link to return val if link is not correct

Piotr Labudda il y a 10 ans
Parent
commit
569a9d9632
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      SE/se-lib/TableAjax.php

+ 1 - 1
SE/se-lib/TableAjax.php

@@ -896,7 +896,7 @@ class TableAjax extends ViewAjax {
 							var linkErrors = validate({www_link: link}, {www_link: {url: true}});
 							if (linkErrors) {
 								// if(dbg)console.log('linkErrors for (' + link +')', linkErrors);
-								return '';
+								return val;
 							}
 							fldNode = document.createElement('a');
 							fldNode.setAttribute('href', link);