Hi,
So this is a bit of a strange bug and I was wondering if anyone had sorted it out.
I have xataface set up with login authentication. Upon logging in, xataface automatically routs the user to the list view of the table 'Client'. The client table is set to sort the Client ID descending using the following statement in the index.php file
if ( !isset($_REQUEST['-sort']) and @$_REQUEST['-table'] == 'Client' ){
$_REQUEST['-sort'] = $_GET['-sort'] = 'Client_ID desc';
}
The links are sorted correctly, but the information is incorrect. For example, if client number 1 is named John Doe, and client number 10 is named Jane Doe, the list view will display the following way
1 John Doe
...
...
...
10 Jane Doe
However, upon clicking 1 for John Doe the user is brought to Jane Doe's record and vice versa. Hense, the links are sorted in the correct order but the data is not sorted.
Now, this problem only occurs when authentication is enabled. Additionally, if I click the Client tab to bring me to the client table, the list view is then sorted correctly.
Any help is appreciated,
Mike