• mmacm
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi,

 

I have created a custom button on Opportunity detail page called 'Reject' and associated a VisualForce page on click of this button. Created an extension to custom controller Opportunity.

 

Inside this VF page, I am displaying Opportunity detail page with few more information. This means I am showing the default standard buttons which are there in Opportunity detail page.

 

<apex:page standardController="Opportunity" tabStyle="Opportunity" action="{!saveFormalBids}" extensions="INTLC_VFExtension_Oppor_Rejection" >
<apex:detail subject="{!opportunity}" relatedlist="false" />
....

 

 

After I click on 'Reject' button, VF page called fine and also does whatevr I specified in the controller extension. After the page is displayed, When user click on  standard 'Edit' button on Opportunity detail page, make some changes on oppor detail page and then click on standard 'Save' button, the same VF page and the extension controller get called which I attached on click of 'Reject'.

 

I believe, this should not happen on click of standard 'save' button as I haven't override this button at all.

 

 

Please advise if this is some bug or I am missing something here.

 

 

Thanks in advance !

 

Sharad

  • February 02, 2009
  • Like
  • 0