Bug submitting form with record locks

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug submitting form with record locks

stevepiercy
When merging the latest knop.lasso with my version, I kept
getting an error with knop_form whenever I submitted an update
to an existing record.

     No tag, type or constant was defined under the name null->value.
     at: loadfields
     at: /_action/act_admin_pages_edit.inc on line: 3 at
position: 5
     ...

I found the issue at line 2737 of knop.lasso.  For some reason
'-user' got inserted where '-lockvalue' should be.  Can someone verify?

Fails:
---------------------------

                         (self -> 'db_lockvalue')=((#_params ->
(find: '-lockvalue' ) -> first -> value) != ''
                             ? (#_params -> (find: '-user' ) ->
first -> value) | null);

My original works:
---------------------------

                         (self -> 'db_lockvalue')=((#_params ->
(find: -lockvalue ) -> first -> value) != ''
                             ? (#_params -> (find: -lockvalue )
-> first -> value) | null);


So I merged it to be compliant with Lasso 9 syntax.  This works too:
---------------------------

                         (self -> 'db_lockvalue')=((#_params ->
(find: '-lockvalue' ) -> first -> value) != ''
                             ? (#_params -> (find: '-lockvalue'
) -> first -> value) | null);


--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Bug submitting form with record locks

Johan Solve-2
Thanks, good find! I've committed the fix.

At 03.18 -0800 2010-11-20, Steve Piercy - Web Site Builder wrote:

>When merging the latest knop.lasso with my version, I kept getting an error with knop_form whenever I submitted an update to an existing record.
>
>    No tag, type or constant was defined under the name null->value.
>    at: loadfields
>    at: /_action/act_admin_pages_edit.inc on line: 3 at position: 5
>    ...
>
>I found the issue at line 2737 of knop.lasso.  For some reason '-user' got inserted where '-lockvalue' should be.  Can someone verify?
>
>Fails:
>---------------------------
>
>                        (self -> 'db_lockvalue')=((#_params -> (find: '-lockvalue' ) -> first -> value) != ''
>                            ? (#_params -> (find: '-user' ) -> first -> value) | null);
>
>My original works:
>---------------------------
>
>                        (self -> 'db_lockvalue')=((#_params -> (find: -lockvalue ) -> first -> value) != ''
>                            ? (#_params -> (find: -lockvalue ) -> first -> value) | null);
>
>
>So I merged it to be compliant with Lasso 9 syntax.  This works too:
>---------------------------
>
>                        (self -> 'db_lockvalue')=((#_params -> (find: '-lockvalue' ) -> first -> value) != ''
>                            ? (#_params -> (find: '-lockvalue' ) -> first -> value) | null);
>
>
>--steve
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder
>Soquel, CA
><[hidden email]>                  <http://www.StevePiercy.com/>
>
>
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/