SalesforceLabs / Milestones-PM

Lightweight Project and Task Management for Force.com #forcedotcom
http://labs.force.com/pm
208 stars 520 forks source link

Error while initializing the Project #137

Open naveenila1221 opened 7 years ago

naveenila1221 commented 7 years ago

Hi Milestones-PM Team,

I appreciate you work towards project management tool for Salesforce. I installed the Unmanaged package in my dev org. However I got error while initializing the same.

I found an Issue while getting the filed description(no name space for the given field) for "Project" object trough debug logs. I rectified the same temporally through following way, which anyway not so advisable.

Class : Milestone1_Security_Utility Method : fieldsCreateable public static void fieldsCreateable(DescribeSObjectResult dsr, Set fields) { Map<String, Schema.SObjectField> fieldMap = dsr.fields.getMap(); for (String field : fields) { System.debug('$$$ field '+field ); // This is the place where I made a change field = (!field.contains('LTEST1') && field.contains('c') )? 'LTEST1'+field : field ; DescribeFieldResult fdr = fieldMap.get(field).getDescribe(); System.debug('$$$ fdr '+fdr ); System.debug(field + ': ' + fdr.isCreateable()); fieldCreateable(fdr); } }

I am attaching the above code for you reference. Place look into the same