From c3727be61f31f0b756cffe8a2e2ab22b13b07748 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 5 Nov 2009 15:34:47 -0800 Subject: [PATCH] Supply a value, and a default value for Shop/Admin. --- lib/WebGUI/Shop/Admin.pm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/WebGUI/Shop/Admin.pm b/lib/WebGUI/Shop/Admin.pm index 0c6714ad6..3bae3354d 100644 --- a/lib/WebGUI/Shop/Admin.pm +++ b/lib/WebGUI/Shop/Admin.pm @@ -202,17 +202,19 @@ sub www_editSettings { hoverHelp => $i18n->get("my purchases detail template help"), ); $form->template( - name => 'shopReceiptEmailTemplateId', - namespace => "Shop/EmailReceipt", - label => $i18n->get("receipt email template"), - hoverHelp => $i18n->get("receipt email template help"), - defaultValue => 'bPz1yk6Y9uwMDMBcmMsSCg', + name => 'shopReceiptEmailTemplateId', + namespace => "Shop/EmailReceipt", + label => $i18n->get("receipt email template"), + hoverHelp => $i18n->get("receipt email template help"), + defaultValue => 'bPz1yk6Y9uwMDMBcmMsSCg', + value => $setting->get("shopReceiptEmailTemplateId"), ); $form->group( - name => 'shopSaleNotificationGroupId', - label => $i18n->get("sale notification group"), - hoverHelp => $i18n->get("sale notification group help"), - defaultValue => '3', + name => 'shopSaleNotificationGroupId', + label => $i18n->get("sale notification group"), + hoverHelp => $i18n->get("sale notification group help"), + defaultValue => '3', + value => $setting->get("shopSaleNotificationGroupId"), ); $form->submit; return $ac->render($form->print, $i18n->get("shop settings"));