I've overridden the 'Edit' button on a custom record with a Visualforce page and now I can't change the record type. It'll let me go to the 'Change' screen, click continue, but then the record type has been changed back.
I have no code referencing the record type at all on the page, in the controller, or any classes and triggers. This is what my page header looks like. The createOrEdit variable is just a string for either $Action.SFDC_MDF__c.edit or $Action.SFDC_MDF__c.new depending on whether I find a Fund Request Id.
<apex:page action="{!if($Profile.Name =='Partner - Reseller' || $Profile.Name=='Partner - Distributor',
null,
urlFor(createOrEdit, $ObjectType.SFDC_MDF__c,
[retURL=returnURL,id=myMDF.Id], true))}"
showHeader="true" sidebar="true" standardController="SFDC_MDF__c" extensions="FundRequestExtension" docType="HTML-5.0" title="Fund Request">
This has to be a bug or I'm not seeing something? Is this simply something that we have to deal with as a consequence for overriding standard buttons?
I've tried querying the recordType in the controller's constructor and can verify that it isn't being updated prior to the redirect.