[FIXED] ConfigureColumn snippets should forgive extra lines.
Posted: 12 Jun 2014 16:57
Run the following in a fresh copy of 14.20.0000 and then view the Custom Column definitions.
XY uses the CRLF at the end of our second snippet as the filter - confirmed by doing a Select All > Copy in the filter editor - but to the user it looks like the filter is as empty as it should be.
Code: Select all
$snippet = <<<#SNIPPET
Snip: CustomColumn 1
XYplorer 14.20.0000, 6/12/2014 10:32:41 AM
Action
ConfigureColumn
Caption
Test
Type
3
Definition
return 'hi';
Format
0
Trigger
1
Item Type
2
Item Filter
#SNIPPET;
// Create d-11 with snippet as is.
snippet($snippet);
// Create d-12 with snippet + CRLF.
snippet($snippet . "<crlf>");
goto "<xy>";
// Show new columns
setcolumns(':d-11,:d-12', 8, 1);
Echo "Shouldn't the two test columns show the same thing?<crlf>All we did was append a CRLF to the second one.<crlf 2>Check out the Custom Column definitions next...";
#600; // Tools | Configuration...XY uses the CRLF at the end of our second snippet as the filter - confirmed by doing a Select All > Copy in the filter editor - but to the user it looks like the filter is as empty as it should be.