+ Start a Discussion

Overridden Opportunity Clone button and "Required fields are missing: Label"

I have overridden the Opportunity's clone button with a Visualforce page and an extention apex class.

There is no code in my extention class and nothing in the Visualforce page:


<apex:page standardController="Opportunity" extensions="OpportunityCloneController" action="{!init}">

 The Controller class:

public with sharing class OpportunityCloneController {
    private Opportunity opp = null;
    public OpportunityCloneController(ApexPages.StandardController controller) {
        opp = (Opportunity)controller.getRecord();
    public PageReference init()
      return null;

   Here the link produced when i click on the clone button:




   However when i click save the apex class gets saved but i get an error message and does not seem to save the VF page:

   Error: Required fields are missing: Label


   I am not sure what this error message means!

   Any help is appreciated



Strange.. I see the same error.  Looks like a bug to me... you should probably open a support case.