@@ -1942,12 +1942,12 @@ private function insertQuery($formdef_file, $client_id, $params)
19421942
19431943 $ app ->uses ('remoting_lib ' );
19441944
1945- //* Load the form definition
1946- $ app ->remoting_lib ->loadFormDef ($ formdef_file );
1947-
19481945 //* load the user profile of the client
19491946 $ app ->remoting_lib ->loadUserProfile ($ client_id );
19501947
1948+ //* Load the form definition
1949+ $ app ->remoting_lib ->loadFormDef ($ formdef_file );
1950+
19511951 //* Get the SQL query
19521952 $ sql = $ app ->remoting_lib ->getSQL ($ params ,'INSERT ' ,0 );
19531953 if ($ app ->remoting_lib ->errorMessage != '' ) {
@@ -1989,12 +1989,12 @@ private function updateQuery($formdef_file, $client_id, $primary_id, $params)
19891989
19901990 $ app ->uses ('remoting_lib ' );
19911991
1992- //* Load the form definition
1993- $ app ->remoting_lib ->loadFormDef ($ formdef_file );
1994-
19951992 //* load the user profile of the client
19961993 $ app ->remoting_lib ->loadUserProfile ($ client_id );
19971994
1995+ //* Load the form definition
1996+ $ app ->remoting_lib ->loadFormDef ($ formdef_file );
1997+
19981998 //* Get the SQL query
19991999 $ sql = $ app ->remoting_lib ->getSQL ($ params ,'UPDATE ' ,$ primary_id );
20002000 if ($ app ->remoting_lib ->errorMessage != '' ) {
@@ -2036,6 +2036,9 @@ private function deleteQuery($formdef_file, $primary_id)
20362036
20372037 $ app ->uses ('remoting_lib ' );
20382038
2039+ //* load the user profile of the client
2040+ $ app ->remoting_lib ->loadUserProfile ($ client_id );
2041+
20392042 //* Load the form definition
20402043 $ app ->remoting_lib ->loadFormDef ($ formdef_file );
20412044
0 commit comments