Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from kamatvs/master
Browse files Browse the repository at this point in the history
code change for making the app work for Managed packaging
  • Loading branch information
ReidCarlberg committed Oct 31, 2011
2 parents 6a24aa3 + c02b632 commit d416731
Show file tree
Hide file tree
Showing 23 changed files with 214 additions and 157 deletions.
23 changes: 23 additions & 0 deletions .project
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ActionPlans</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.salesforce.ide.builder.online</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.salesforce.ide.builder.default</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.salesforce.ide.nature.default</nature>
<nature>com.salesforce.ide.nature.online</nature>
</natures>
</projectDescription>
13 changes: 13 additions & 0 deletions .settings/com.salesforce.ide.core.prefs
@@ -0,0 +1,13 @@
#Wed Oct 26 11:38:37 EDT 2011
eclipse.preferences.version=1
endpointApiVersion=20.0
endpointEnvironment=Production/Developer Edition
endpointServer=www.salesforce.com
httpsProtocol=true
ideVersion=20.0
keependpoint=false
metadataFormatVersion=20.0
namespacePrefix=
packageName=unpackaged
readTimeout=400
username=labs05p@labs.com
1 change: 1 addition & 0 deletions salesforce.schema
@@ -0,0 +1 @@
place holder
6 changes: 4 additions & 2 deletions src/classes/ActionPlanTemplates.cls
Expand Up @@ -158,7 +158,8 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
}

// Send the user to the detail page for the new account.
PageReference newPage = new PageReference( '/apex/ActionPlanTemplateDetail?Id=' + apt.Id );
PageReference newPage = Page.ActionPlanTemplateDetail;
newPage.getParameters().put('Id', apt.Id);
newPage.setRedirect( true );
return newPage;
}
Expand Down Expand Up @@ -197,7 +198,8 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
}
else{
// Send the user to the detail page for the new account.
newPage = new PageReference( '/apex/ActionPlanTemplateDetail?Id=' + actionPlanTemplate.Id );
newPage = Page.ActionPlanTemplateDetail;
newPage.getParameters().put('Id', actionPlanTemplate.Id);
newPage.setRedirect( true );
}

Expand Down
2 changes: 1 addition & 1 deletion src/classes/ActionPlansUtilities.cls
Expand Up @@ -460,7 +460,7 @@ public with sharing class ActionPlansUtilities{
*/
public PageReference saveAndNew(){
saveAp();
PageReference newPage = new PageReference( '/apex/ActionPlanCreation?' + 'clone=1' );
PageReference newPage = new PageReference( Page.ActionPlanCreation + '?clone=1' );
newPage.setRedirect( true );

return newPage;
Expand Down
6 changes: 5 additions & 1 deletion src/classes/ImportTemplateController.cls
Expand Up @@ -52,7 +52,11 @@ public with sharing class ImportTemplateController{
try{
String templateId = importUtil.processImportedDocument( this.attachment );

return new Pagereference( '/apex/ActionPlanTemplateDetail?id=' + templateId );
PageReference newPage = Page.ActionPlanTemplateDetail;
newPage.getParameters().put('Id', templateId);

return newPage ;

}catch( Exception ex ){
//we initialize again the attachment when an error ocurres to prevent viewstate size errors
this.attachment = new Attachment();
Expand Down

0 comments on commit d416731

Please sign in to comment.