Commit 053ffdb455f78b832adba5b340d178020560e7fa

Authored by Nathanael Jourdane
1 parent 600add6e

bugFix targetNames issue

Showing 2 changed files with 2 additions and 1 deletions   Show diff stats
js/app/views/EpnTapUI.js
... ... @@ -125,6 +125,7 @@ Ext.create('Ext.data.Store', {
125 125 {property: 'short_name', direction: 'ASC'}
126 126 ],
127 127 listeners: {
  128 + // beforeload: function(s, operation) { console.log(operation); },
128 129 load: function(store, records, successful) {
129 130 if(!successful) {
130 131 Ext.Msg.alert('Error', 'Can not get epntap services from registries.');
... ...
php/epntap.php
... ... @@ -183,7 +183,7 @@ function getGranules() {
183 183  
184 184 function createFilter($targetNames, $productTypes, $timeMin, $timeMax) {
185 185 $filter = array();
186   - if($targetName) {
  186 + if($targetNames) {
187 187 array_push($filter, "target_name IN ('" . join("', '", preg_split("/ ?[;,] ?+/", $targetNames)) . "')");
188 188 }
189 189 if($productTypes) {
... ...