# Copyright (c) 2008 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: CRMActionList.bunit,v 1.6 2009/04/18 00:49:36 nagler Exp $ ListModel(); req()->initialize_fully; req()->set_realm_and_user(qw(crm_forum crm_tech1)); [ load_all => [ [] => [ +{name => qr{close}i}, +{name => qr{open.*(?!locked)}i}, +{name => qr{locked}i}, +{name => qr{pending}i}, +{name => qr{assign.*tech1}i}, +{name => qr{assign.*tech2}i}, ], ], load_owner_names => [ [] => [ +{name => qr{tech1}i}, +{name => qr{tech2}i}, ], ], id_to_owner => [ realm_id('crm_tech1') => realm_id('crm_tech1'), map((-CRMThreadStatus($_->[0])->as_int => [$_->[1]]), [CLOSED => undef], [OPEN => undef], [LOCKED => undef], ), ], id_to_status => [ realm_id('crm_tech1') => [CRMThreadStatus('OPEN')], ], owner_email_to_name => [ '' => [undef], 'a@a.a' => 'a', ], status_to_id => [ [CRMThreadStatus('NEW')] => -3, [CRMThreadStatus('OPEN')] => -4, ], ];