Description - Error: Managed Package Patch Modification Exception A change was made to the patch release that will change the visible behavior of the application: Feature dependency addition: Quotes: Apex Class: xyzzzzzzzz
- When: The above error is visible when we try to query out the Quotes and its document. As soon as the query is commented out the packaging does not have any issues.
- Where: below is the code that is commented out to remove the error. This code is related to the feature. Is there a workaround?
Code:
List<Quote> quotes = [Select q.Id from
Quote q where q.OpportunityId=:RelatedQuoteDocuments];
for(Quote quote : quotes)
{
QuoteDocument quoteDocument = [Select d.Id, d.Name from QuoteDocument d where d.QuoteId=:quote.Id ORDER BY d.Id DESC LIMIT 1];
if(quoteDocument != null)
{
dsCreateAndSend.AddDocument(quoteDocument.Id, 'Quote', quoteDocument.Name, docOrder);
docOrder++;
}
}