Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

pb de connexion avec paramètre 'k'

Post Reply
ltrannoy
Posts: 19
Joined: Sat Jul 26, 2014 10:09 am
Location: France

pb de connexion avec paramètre 'k'

Unread post by ltrannoy »

Hi,

At 1589 line common.js file, there is the statement:
w.record_id = '-1';
It prevents automatic connection to the forms.

Is this normal?

Best regards
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: pb de connexion avec paramètre 'k'

Unread post by admin »

ltrannoy,

I'm not sure what you mean by It prevents automatic connection to the forms.

But '-1' means an unsaved record. Which the Home (starting Form) is.

Steven
ltrannoy
Posts: 19
Joined: Sat Jul 26, 2014 10:09 am
Location: France

Re: pb de connexion avec paramètre 'k'

Unread post by ltrannoy »

Hi

This is an absent regression older versions of the file nucommons.js.
(https://github.com/nuSoftware/nuBuilder ... ucommon.js : on 5 Jun removed visible password )
appeared the 15/1/15 : https://github.com/nuSoftware/nuBuilder ... 859fea0fdf
in :
function nuLogin(u, p, k){

var w = new nuWindow();
w.form_id = 'nuindex';
w.call_type = 'login';
line 1548 w.record_id = k == '' ? '-1' : k; // it's ok !!!!!!!!!!!!!!!!!!
line 1589 w.record_id = '-1'; // it s new but it s a bug !!!!!!!!!!!!!!

Laurent
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: pb de connexion avec paramètre 'k'

Unread post by admin »

Laurent,
ltrannoy wrote:
It prevents automatic connection to the forms.
I don't understand what you are saying.

Steven
ltrannoy
Posts: 19
Joined: Sat Jul 26, 2014 10:09 am
Location: France

Re: pb de connexion avec paramètre 'k'

Unread post by ltrannoy »

Sorry, I meant:
It does not provide access to a record (not a form) whose identifier is passed in parameter.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: pb de connexion avec paramètre 'k'

Unread post by admin »

Laurent,
It does not provide access to a record (not a form) whose identifier is passed in parameter.
Yes, its not supposed to for the starting Home Form.

Steven
Post Reply