Mariusz Muszyński před 8 roky
rodič
revize
35c59fe73c
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      SE/se-lib/TableAjax.php.TableAjax.js

+ 3 - 2
SE/se-lib/TableAjax.php.TableAjax.js

@@ -485,8 +485,9 @@ var TableAjax = function() {
 							$.each(_fieldProps._tsSimpleLink.aliasMap, function(i, v) {
 								// console.log('simpleLink aliasMap fldName:', fldName, 'i:', i, 'v:', v, 'row['+v+']', row[v], 'val', val, 'typeof val', typeof val);
 								if (undefined !== row[v]) {
-									if (fldName == 'LINK_PROBLEMS' && row[v]) row[v] = row[v].replace(/"/g, '%22').replace(/&/g, '%26');
-									valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), row[v]);
+									var _itemValue = row[v];
+									if (fldName == 'LINK_PROBLEMS' && row[v]) _itemValue = _itemValue.replace(/"/g, '%22').replace(/&/g, '%26');
+									valLink = valLink.replace(new RegExp('\{' + i + '\}', 'g'), _itemValue);
 								}
 							});
 						}