dotnetrix Posted April 9, 2014 Share Posted April 9, 2014 I have an issue, not sure if this is a WHMCS bug: I have a custom Registrar module developed by ourselves. One of the Registrar functions is: function rar_ApproveTransfer($params) with Error value like this in the actual registrar module: $values["error"] = 'Cannot approve transfer now'; return $values; The approve button is available to admins: function rar_AdminCustomButtonArray() { $buttonarray = array( "Approve Transfer" => "ApproveTransfer", ); return $buttonarray; } as well as to our clients in the client area: function rar_ClientAreaCustomButtonArray() { $buttonarray = array( "Approve Transfer" => "ApproveTransfer", ); return $buttonarray; } The problem I am facing is that if an admin clicks on the button it will correctly return: "Cannot approve transfer now". but if a client clicks on the button via domains -> domain details -> management drop down it just does not return any success or error, despite there being: {elseif $registrarcustombuttonresult=="success"} <div class="alert alert-success"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <p>{$LANG.moduleactionsuccess}</p> </div> {elseif $registrarcustombuttonresult} <div class="alert alert-danger"> <p><strong>{$LANG.moduleactionfailed}:</strong> {$registrarcustombuttonresult}</p> </div> Any input appreciated. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.