Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7578: Defining Type with Lasso 8 syntax not working

Reported by:
Starmark
Date:
30 Aug, 2013
Priority:
critical
Component:
Lasso 9
Version:
9.2.6
Keywords:
Platform:
Example Code:
<?=
DEFINE_TYPE('partnerOBJ') => {
DEFINE_TAG( 'onCreate',
-required='partnerID');
return 'here'
/DEFINE_TAG;
}
partnerOBJ('')
partnerOBJ(-partnerID='')
?>

Expected Result:
Two instances of the type to be created

Actual Result:
Error Code: -1
Error Msg: Position was out of range: 0 max is 1
Error Stack:
3:9 /Users/bladmin/Desktop/smtest.lasso
9:1 /Users/bladmin/Desktop/smtest.lasso
73:12 lasso9.lasso
68:3 lasso9.lasso
66:3 lasso9.lasso
60:3 lasso9.lasso
58:15 lasso9.lasso
46:3 lasso9.lasso
19:8 lasso9.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
45:2 lasso9.lasso
14:25 lasso9.lasso

This appears to be a regression in 9.2.6 as this code used to work in 9.2.5

Comments

17 Sep, 2013 by John Morris
Looks like this code also produces the same error:


define_tag( 'debug',
-req='input', -copy,
-opt='label', -copy);

!local_defined('label') ? local('label') = '' | #label += ': ';

local('output') = '<div style="font: 11px \'Tahoma\'; color: #888; border-bottom: 1px dotted #bbb; width: 500px; padding: 3px;">' + #label + #input + '</div>';

return(#output);

/define_tag;




debug('hello', 'test label');
13 Dec, 2013 by Kyle Jessup
In [changeset:"3794"]:
#!CommitTicketReference repository="" revision="3794"
fixes #7578
13 Dec, 2013 by Kyle Jessup
In [changeset:"3795"]:
#!CommitTicketReference repository="" revision="3795"
fixes #7578 for 9.2
13 Dec, 2013 by Kyle Jessup
In [changeset:"3796"]:
#!CommitTicketReference repository="" revision="3796"
fixes #7578 for 9.2
30 Dec, 2013 by Justin Dennis
Eagerly anticipating 9.2.7, as we are affected by this as well. Thank you. -Justin
03 Jan, 2014 by Steve Piercy
Until this bug is resolved in a future release, what are options to avoid it now?

1. Downgrade to 9.2.5
2. Check values of parameters before attempting to invoke the tag/type.
3. Other?

Please advise.
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft