@@ -224,11 +224,12 @@ Ext.define("custom-grid-with-deep-export", {
224224 } ] ;
225225 }
226226 else if ( currentModel . startsWith ( "portfolioitem" ) ) {
227- var idx = _ . indexOf ( this . getPortfolioItemTypeNames ( ) , currentModel ) ;
227+ var piTypeNames = this . getPortfolioItemTypeNames ( ) ;
228+ var idx = _ . indexOf ( piTypeNames , currentModel ) ;
228229 var childModels = [ ] ;
229230 if ( idx > 0 ) {
230231 for ( var i = idx ; i > 0 ; i -- ) {
231- childModels . push ( this . getPortfolioItemTypeNames ( ) [ i - 1 ] . toLowerCase ( ) ) ;
232+ childModels . push ( piTypeNames [ i - 1 ] ) ;
232233 }
233234 }
234235
@@ -241,8 +242,6 @@ Ext.define("custom-grid-with-deep-export", {
241242 text : 'Export Portfolio Items and User Stories...' ,
242243 handler : this . _export ,
243244 scope : this ,
244- includeStories : true ,
245- includeTasks : false ,
246245 childModels : childModels . concat ( [ 'hierarchicalrequirement' ] )
247246 } , {
248247 text : 'Export Portfolio Items, User Stories and Tasks...' ,
@@ -253,7 +252,7 @@ Ext.define("custom-grid-with-deep-export", {
253252 text : 'Export Portfolio Items and Child Items...' ,
254253 handler : this . _export ,
255254 scope : this ,
256- childModels : childModels . concat ( [ 'hierarchicalrequirement' , 'defect' , 'testcase' ] )
255+ childModels : childModels . concat ( [ 'hierarchicalrequirement' , 'task' , ' defect', 'testcase' ] )
257256 } ] ;
258257 }
259258 else if ( currentModel == 'defect' ) {
@@ -295,7 +294,7 @@ Ext.define("custom-grid-with-deep-export", {
295294 } ,
296295 getPortfolioItemTypeNames : function ( ) {
297296 return _ . map ( this . portfolioItemTypes , function ( type ) {
298- return type . get ( 'TypePath' ) ;
297+ return type . get ( 'TypePath' ) . toLowerCase ( ) ;
299298 } ) ;
300299 } ,
301300
0 commit comments