From 6b017ad991975a8e53a9bc273acd111e02e74816 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 14 Apr 2008 04:12:22 +0000 Subject: [PATCH] fix undocumented template variable in the Layout --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Help/Asset_Layout.pm | 2 +- lib/WebGUI/i18n/English/Asset_Layout.pm | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index aa9a227b3..787f8feec 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.5.11 + - fix: template variable isUncommitted is not documented in the help 7.5.10 - fix: Syntax error in GetCsMail diff --git a/lib/WebGUI/Help/Asset_Layout.pm b/lib/WebGUI/Help/Asset_Layout.pm index 7683a22c3..653bd942f 100644 --- a/lib/WebGUI/Help/Asset_Layout.pm +++ b/lib/WebGUI/Help/Asset_Layout.pm @@ -22,7 +22,7 @@ our $HELP = { { 'name' => 'dragger.icon' }, { 'name' => 'dragger.init' }, { 'name' => 'position1_loop', - 'variables' => [ { 'name' => 'id' }, { 'name' => 'content' } ] + 'variables' => [ { 'name' => 'id' }, { 'name' => 'content' }, { 'name' => 'isUncommitted' }, ] }, ], fields => [], diff --git a/lib/WebGUI/i18n/English/Asset_Layout.pm b/lib/WebGUI/i18n/English/Asset_Layout.pm index 043019f08..cd8cd5e10 100644 --- a/lib/WebGUI/i18n/English/Asset_Layout.pm +++ b/lib/WebGUI/i18n/English/Asset_Layout.pm @@ -59,6 +59,12 @@ specifically placed are put inside of position 1.|, lastUpdated => 1148963207, }, + 'isUncommitted' => { + message => q|A boolean, whether or not this Asset is committed|, + lastUpdated => 1208146216, + context => q|Help variable in the position1_loop|, + }, + 'layout template body' => { message => q|

The following variables are available in Page Layout Templates:

|,