- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2022 03:19 AM
Hello, Andreas.
Thank you for your effort.
I discovered when this bug (I assume that it is a bug in SNOW) is turned on.
I created simple catalog item and I used two ajax calls to script include to fill values to fields on the form.
The first field was 'requested for' type and did not cause any problems. I had to fill 'requestor email' on the form.
The second was 'device' and I had to fill the 'serial number' value.
The second one was 'reference' type (cmdb_ci table) and once I wanted to use this ajax call to fill the 'serial number' on the form then it caused the issue which I described earlier. It worked as expected, serial number was there on the form, but there was this change in the view too...
It happened on every item I've created...
I did not touch any settings related to view.
I tried a lot: to delete all the caches (SNOW and browser) and cookies, different browsers ( Chrome and Edge), different SNOW releases San Diego and Rome...
But the bug was still there.
The only way how to make it right again was to log off and on to the instance again.
I asked our senior developers, but unfortunately we did not find any solution. They all have never seen such a thing before...
At the end I tried not to use the ajax call for the problematic variable. I used simple 'g_form.getParameter' and the bug suddenly disappeared!
The catalog item works as expected without any problems...I did not use ajax to fill all the fields, which was one part of my task, but under these circumstances I do not find it as a problem...
I hope it is just unlucky combination of some factors, which I hopefully will not repeat and It won't pursue me in the future.
Regards
Ales