Merge pull request #1575 from Abderahman88/FixContentQuery
This commit is contained in:
commit
d513625ff0
|
@ -27,6 +27,7 @@ react-content-query-web part (Online)|David Warner II ([Warner Digital](http://w
|
|||
react-content-query-web part (Online)|Hugo Bernier ([Tahoe Ninjas](http://tahoeninjas.blog), [@bernierh](https://twitter.com/bernierh))
|
||||
react-content-query-web part (Online)|Paolo Pialorsi ([PiaSys.com](https://piasys.com/), [@PaoloPia](https://twitter.com/PaoloPia?s=20))
|
||||
react-content-query-web part |Simon-Pierre Plante
|
||||
react-content-query-web part (Online)|Abderahman Moujahid
|
||||
|
||||
## Version history
|
||||
|
||||
|
@ -45,6 +46,7 @@ Version|Date|Comments
|
|||
1.0.11|May 22, 2018|Fixed a bug causing filters to loose their sort order in IE
|
||||
1.0.12|April 19, 2020|Upgraded to SPFx 1.10
|
||||
1.0.13|April 28, 2020|Added support for Dynamic Data
|
||||
1.0.14|October 30, 2020|Fixed (lookup-)fields with special characters
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"solution": {
|
||||
"name": "React Content Query",
|
||||
"id": "00406271-0276-406f-9666-512623eb6709",
|
||||
"version": "1.0.13.0",
|
||||
"version": "1.0.14.0",
|
||||
"isDomainIsolated": false,
|
||||
"includeClientSideAssets": true
|
||||
},
|
||||
|
|
|
@ -578,10 +578,11 @@ export class ContentQueryService implements IContentQueryService {
|
|||
|
||||
for(let result of results) {
|
||||
let normalizedResult: any = {};
|
||||
let formattedCharsRegex = /_x00(20|3a)_/gi;
|
||||
let formattedCharsRegex = /_x00(20|3a|e0|e1|e2|e7|e8|e9|ea|ed|f3|f9|fa|fc)_/gi;
|
||||
|
||||
for(let viewField of viewFields) {
|
||||
let formattedName = viewField.replace(formattedCharsRegex, "_x005f_x00$1_x005f_");
|
||||
formattedName = formattedName.replace(/_x00$/,"_x005f_x00");
|
||||
|
||||
normalizedResult[viewField] = {
|
||||
textValue: result.FieldValuesAsText[formattedName],
|
||||
|
|
Loading…
Reference in New Issue