Page 1 of 1

Bug on browseform + search

Posted: Fri Jul 03, 2020 11:17 pm
by gerese
Hi, do you have this bug ?
Is manifested in the versions launched on 28.06.2020 and 29.06.2020.

3.jpg
4.jpg

Re: Bug on browseform + search

Posted: Sat Jul 04, 2020 1:11 am
by admin
gerese,

Can you give more info?

eg. Does it just happen on only 1 Form.


Steven

Re: Bug on browseform + search

Posted: Sat Jul 04, 2020 1:57 am
by gerese
admin wrote:gerese,

Can you give more info?

eg. Does it just happen on only 1 Form.


Steven

Hi Steven,
It manifests in all forms, not just in 1 form.

I also tried the versions released on 2020-06-09, 2020-05-19, 2020.04.19 and nubuilder4 do not have this problem.

Re: Bug on browseform + search

Posted: Sun Jul 05, 2020 10:17 am
by kev1n
I am able to replicate the issue as follows:

1. Browse Screen: Search for any text
2. In the search results, click on a string that is red
3. Edit Screen opens with a "null" record.
click.gif
I came across a code that I honestly do not understand. An onclick event is added to the highlighted text: this.offsetParent.onclick()
If I remove that, everything works as expected, in any situation.

Fix:
Replace

Code: Select all

h 		= h.replaceAll('`````', '<span class="nuBrowseSearch" onclick="this.offsetParent.onclick()">', true);
(nuform.js#L2896)

With:

Code: Select all

h         = h.replaceAll('`````', '<span class="nuBrowseSearch" >', true);

Re: Bug on browseform + search

Posted: Sun Jul 05, 2020 10:11 pm
by admin
Guys,

It's now fixed.

Thanks.


Steven