Re: Patch to display updated expiration on renewals

From: Gregory Neil Shapiro (gshapiro+opensrs-dev@gshapiro.net)
Date: Mon Feb 12 2001 - 23:31:50 EST


lists> If you renew a domain in manage.cgi, and the domain you're renewing
lists> is the domain you're currently managing, the resulting renewal
lists> confirmation screen doesn't show the updated expiration date in the
lists> header. This is a Bad Thing.

lists> This patch fixes it by updating $expiredate with the new expiration date
lists> returned from the server before passing $expiredate to the HTML output.

For those using the patches I have made against manage.cgi for the other
renewal related problems, here is Robert's patch modified to work with my
patches:

--- manage.cgi 2001/02/06 05:09:53 1.8
+++ manage.cgi 2001/02/13 04:28:44
@@ -2668,6 +2668,9 @@
         },
     };
     my $response = $XML_Client->send_cmd( $xcp_request );
+ if ($domain eq $reg_domain) {
+ $expiredate = $response->{attributes}->{'registration expiration date'};
+ }
     return ($response->{response_text});
 }
 



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:36:15 EDT