[Rt-commit] rt branch, create-action, updated. c8abd481e2c64af36e88d898d810f4169d4fb895
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 22 06:54:10 EDT 2009
The branch, create-action has been updated
via c8abd481e2c64af36e88d898d810f4169d4fb895 (commit)
from 139f7495a0aadea50f6001c9c6498e81af75814e (commit)
Summary of changes:
lib/RT/Action/CreateTicket.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit c8abd481e2c64af36e88d898d810f4169d4fb895
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 22 06:53:39 2009 -0400
Lazily construct RT->nobody in action params
This is because the action is loaded eagerly before we've even
connected to the database
diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index e8c50f1..60bda69 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -14,7 +14,7 @@ use Jifty::Action schema {
param owner =>
render as 'select',
- valid_values are RT->nobody;
+ valid_values are lazy { RT->nobody };
param subject =>
render as 'text',
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list