[Rt-devel] [PATCH] EditBasics fix

Todd Chapman todd at chaka.net
Tue Dec 19 14:07:32 EST 2006


I learned the hard way that if you use EditBasics to
change a field and you have a scrip that causes the
Owner to change, SetOwner might be called after your scrip
and cause the Owner to be set back to it's prior value.

This patch changes the arguments passed to SelectOwner
so that the value of the default option is "".

-Todd
-------------- next part --------------
==== Patch <edit_basics_fix> level 1
Source: e4b3ae24-6623-0410-94c5-e08a22d88352:/local/bp/3.6-edit_basics_owner_fix:6835
Target: e417ac7c-1bcc-0310-8ffa-8f5827389a85:/rt/branches/3.6-RELEASE:6650
        (svn://svn.bestpractical.com)
Log:
 r6834 at fe-rtr00a:  todd-chapman | 2006-12-19 13:59:54 -0500
 Fix EditBasics so owner is not submitted if it is not changed.
 r6835 at fe-rtr00a:  todd-chapman | 2006-12-19 14:02:40 -0500
 Fixed owner so it is not changed.

=== html/Ticket/Elements/EditBasics
==================================================================
--- html/Ticket/Elements/EditBasics	(revision 6650)
+++ html/Ticket/Elements/EditBasics	(patch edit_basics_fix level 1)
@@ -63,8 +63,7 @@
           Name         => 'Owner',
           QueueObj     => $TicketObj->QueueObj,
           TicketObj    => $TicketObj,
-          Default      => $TicketObj->OwnerObj->Id,
-          DefaultValue => 0,
+          DefaultLabel => $TicketObj->OwnerObj->Name,
       &></td>
     </tr>
 

==== BEGIN SVK PATCH BLOCK ====
Version: svk 1.08 (linux)

eJyNlM1q3DAQx/ecvkMRVDn04Fif/io128IWSkNSmrTXRZZnd9167UVW0gT0CD3mAQJ90craTbKH
LQkYI0szv/+MZsafzOW7KXVlSRymxF38+FIUX5XVq2MqHE4c1I3tDZauhWtoMXdtv8TCdWoN/nTo
r4weF1aZJdhx0ehfYMuSely2xc0C4gEbqJWyfTfgPODn1gBg6uQ0cVM+PnNMczeAPwnYuYHrZmj6
zgsnGZfewptT795voJubvrfjSSLJlI2+xOm2H2A+wv3OVI7mDPuEgn3dGNA+olvvtLLrNrB2/kFb
7vyfDL3FI4gfAFEaSPFlyD6oPQdkj0BxAMjIPjCetbCGzg5B/jkyfyTLhytaNC1gTg8y47E+H9XQ
6CEE8xxebPHhVG027e3cwo2tobUqSHLmcp0rSeu8Jkwp0CljKeFUwYLkkmqisEx8a5xNJvfL+9Oj
N5O7V5O/kz+v7z6fqgpa9L5EeBvkefUzKs9/d2DC6sx33VTslzgktlPlPmzFoCI1ZbwimSCJ1Fyl
SgqRqZyFOjPfWcj4LhLTBUTGGkJUgZDt6zrSK7VZqw45xAhJIsoimiPKC5kXUqCISEKO0KfmBj3d
GBp61I/xoWZAXW/RcFWtG2uhRs0CNfZh26O7JdQnR0FbvlRbFIQVguxpe/BWzwsfwI9FCTNVhfD8
/dyUJXOYse0sXoaBKorvXXMNZlDtceJ8xTfKrvxs+znzH1dXTY25dHHba9XG1SbmJ0m0Tw0RjOzd
QGLufxSi4gqYiJKE8YgISqJcaBkByRRjdebNWPmWuf8JMuFiY+PKqE6vYAia32answ8Xs11LblVo
qnSqI1ppHfmmIlG2WCj/khlLeZarTOI0fVE0xQsSLMb0/gHPbqMT
==== END SVK PATCH BLOCK ====


More information about the Rt-devel mailing list