ChromeRestClient
ChromeRestClient copied to clipboard
Lost Value when changing Editor view from text input to json editor
When I change editor view, some value is lost and I got null from result.
Versions
App: 10.0.5 Platform: 5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Steps to reproduce
- go to Body and set editor view as text input
- paste following json: {"requestId":"201710180649579429bd7c37ebf9bef5ed38497feaf42a","hostname":"adserver2","platform":"iOS","network":1,"accountId":159,"accountName":"杭州电魂","planId":343,"planName":"yemanrendazuozhan_iOS_CN_20170928","productId":263,"productName":"yemanrendazuozhan_iOS","campaignId":1334,"campaignName":"Centrixlink_30s_Yemanren_CN_20170922_Landscape","creativeId":859,"creativeName":"Centrixlink_30s_Yemanren_CN_20170922_Landscape","videoId":444,"videoName":"Centrixlink_30s_Yemanren_CN_20170922_Landscape.mp4","mediaId":75,"mediaName":"澄迈优目科技有限公司","city":"重庆市","timestamp":"2017-10-17T22:59:15Z","model":"iPhone 6","adType":0,"appName":"元气骑士","countryName":"China","endcardTemplate":"游戏模板(V.170919)","inTestBucket":0,"bucketNum":6,"province":"重庆市","payMode":2,"userId":"31bdaa83-f06c-4430-897b-aa502529442c","sdkVersion":"2.4.0","appId":"4wKpeyY8DP","actionType":"install","platformIncome":10,"platformCost":8,"installNum":1,"portion":0.8,"appUserId":"31bdaa83-f06c-4430-897b-aa502529442c4wKpeyY8DP","campaignUserId":"31bdaa83-f06c-4430-897b-aa502529442c1334"}
- change to json editor and the fields "adType" "inTestBucket" lose their values.
Hi,
Thank you for issue report.
It looks like there's a value check before setting a value to the input without type check. And therefore 0
value is not inserted.