mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 22:40:23 +01:00
Expand name even if not in a row ([...])
This commit is contained in:
parent
cedb8e3f6c
commit
545ffcf34e
@ -204,7 +204,7 @@ var et2_arrayMgr = Class.extend({
|
||||
|
||||
// Check whether "$" occurs in the given identifier
|
||||
var pos_var = _ident.indexOf('$');
|
||||
if (pos_var >= 0 && this.perspectiveData.row != null)
|
||||
if (pos_var >= 0 && (this.perspectiveData.row != null || !_ident.match(/\$\{?row\}?/)))
|
||||
{
|
||||
// Get the content array for the current row
|
||||
var row = this.perspectiveData.row;
|
||||
@ -218,10 +218,19 @@ var et2_arrayMgr = Class.extend({
|
||||
if (typeof proto.compiledExpressions[_ident] == "undefined")
|
||||
{
|
||||
try
|
||||
{
|
||||
if(this.perspectiveData.row == null)
|
||||
{
|
||||
// No row, compile for only top level content
|
||||
proto.compiledExpressions[_ident] = et2_compilePHPExpression(
|
||||
_ident, ["cont"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
proto.compiledExpressions[_ident] = et2_compilePHPExpression(
|
||||
_ident, ["row", "cont", "row_cont"]);
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
proto.compiledExpressions[_ident] = null;
|
||||
@ -235,9 +244,17 @@ var et2_arrayMgr = Class.extend({
|
||||
if (proto.compiledExpressions[_ident])
|
||||
{
|
||||
try
|
||||
{
|
||||
if(this.perspectiveData.row == null)
|
||||
{
|
||||
// No row, exec with only top level content
|
||||
_ident = proto.compiledExpressions[_ident](cont);
|
||||
}
|
||||
else
|
||||
{
|
||||
_ident = proto.compiledExpressions[_ident](row, cont, row_cont);
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
egw.debug("error", e);
|
||||
|
Loading…
Reference in New Issue
Block a user