diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-07-02 21:11:29 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-07-02 21:11:29 -0700 |
| commit | 3d0a1bb06b895c5be6e3f0517d355442a6b1e125 (patch) | |
| tree | 84069ebc3254825b952a482e11cdbbbc69f6fe85 /rt/t/customfields/access_via_queue.t | |
| parent | f3b99c11d6eed33f467dda360180a698a85c54e8 (diff) | |
| parent | d62206a94d9d49ef96640e0a8ec492679f8345e9 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/t/customfields/access_via_queue.t')
| -rw-r--r-- | rt/t/customfields/access_via_queue.t | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/rt/t/customfields/access_via_queue.t b/rt/t/customfields/access_via_queue.t index 690e177df..a059d69ee 100644 --- a/rt/t/customfields/access_via_queue.t +++ b/rt/t/customfields/access_via_queue.t @@ -1,9 +1,8 @@ -#!/usr/bin/perl -w use strict; use warnings; -use RT::Test nodata => 1, tests => 37; +use RT::Test nodata => 1, tests => 47; use RT::Ticket; use RT::CustomField; @@ -158,3 +157,30 @@ diag "check that owner can see and edit CF"; $m->content_contains($cf_name, "changed cf"); } +note 'make sure CF is not reset to no value'; +{ + my $t = RT::Test->create_ticket( + Queue => $queue->id, + Subject => 'test', + 'CustomField-'.$cf->id => '2012-02-12', + Cc => $tester->id, + Owner => $tester->id, + ); + ok $t && $t->id, 'created ticket'; + is $t->FirstCustomFieldValue($cf_name), '2012-02-12'; + + $m->goto_ticket($t->id); + $m->follow_link_ok({id => 'page-basics'}); + my $form = $m->form_name('TicketModify'); + my $input = $form->find_input( + 'Object-RT::Ticket-'. $t->id .'-CustomField-'. $cf->id .'-Value' + ); + ok $input, 'found input'; + $m->click('SubmitTicket'); + + my $tid = $t->id; + $t = RT::Ticket->new( $RT::SystemUser ); + $t->Load( $tid ); + is $t->FirstCustomFieldValue($cf_name), '2012-02-12'; +} + |
