Commit 64280af61e04665809199f429437cc57c5a0525e

Authored by Erdogan Furkan
1 parent e07ef621

11477 - Done.

Showing 2 changed files with 15 additions and 5 deletions   Show diff stats
js/app/views/VisuUI.js
... ... @@ -131,12 +131,19 @@ Ext.define('amdaUI.VisuUI', {
131 131  
132 132 me.reset();
133 133 }
134   -
  134 + var type = "";
  135 + if(this.object.get('id').includes('sharedcatalog'))
  136 + type = 'sharedcatalog'
  137 + else if(this.object.get('id') == "")
  138 + type = 'uploaded'
  139 + else
  140 + type = 'object'
135 141 var opt = {
136 142 'typeTT': 'catalog', 'id': this.object.get('id'),
137   - 'name': this.object.get('name')
  143 + 'name': this.object.get('name'),
  144 + 'type': type,
  145 + 'format': this.object.get('objFormat')
138 146 };
139   -
140 147 this.formPanel.getForm().loadRecord(this.object);
141 148 AmdaAction.readIntervalsForChart(opt, onAfterInit);
142 149 },
... ...
php/classes/AmdaAction.php
... ... @@ -189,7 +189,7 @@ class AmdaAction
189 189 case 'catalog':
190 190 if ($isLeaf) {
191 191 $info = '<b>Nb intervals:</b> '.$child->getAttribute('intervals').'<br/>';
192   -
  192 + // ICIIIII
193 193 $objectMgr = new TimeTableMgr();
194 194 $obj_info = $objectMgr->getObject($id, $nodeType);
195 195 if (!empty($obj_info) && !empty($obj_info['description'])) {
... ... @@ -1202,7 +1202,10 @@ class AmdaAction
1202 1202 public function readIntervalsForChart($o)
1203 1203 {
1204 1204 $objMgr = new CatalogCacheMgr(TRUE);
1205   - $objMgr->initFromObject($o->id, $o->type);
  1205 + if($o->type == 'uploaded')
  1206 + $objMgr->initFromUploadedFile($o->name, $o->format);
  1207 + else
  1208 + $objMgr->initFromObject($o->id, $o->type);
1206 1209 return $objMgr->getIntervalsForChart();
1207 1210 }
1208 1211  
... ...