Browse Source

remove debugging exit statement

master
o.moresis 2 years ago
parent
commit
4d428acd12
  1. 3
      public/js/more-info.js
  2. 2
      src/Data/descriptors.php

3
public/js/more-info.js

@ -71,6 +71,7 @@ function moreInfo() {
gridCode = Alpine.store('entity').cellcode.substr(0,4); gridCode = Alpine.store('entity').cellcode.substr(0,4);
} }
console.debug("entity group:::: ", this.entityGroup);
switch(dropdown) { switch(dropdown) {
case 'd': case 'd':
url += '/interface/dropdowns/descriptors?entity_id=' + this.entityId + '&cellcode=' + gridCode; url += '/interface/dropdowns/descriptors?entity_id=' + this.entityId + '&cellcode=' + gridCode;
@ -121,8 +122,6 @@ function moreInfo() {
this.lineChart = {}; this.lineChart = {};
var ctx = document.getElementById('data-chart').getContext('2d'); var ctx = document.getElementById('data-chart').getContext('2d');
console.debug('fetching...'); console.debug('fetching...');
console.debug('params: ',this.params);
console.debug('entity group: ',this.entityGroup);
const url = `/data/external/POSEIDON/${Alpine.store('entity').tspr}_${Alpine.store('entity').type}_${Alpine.store('entity').pid}`; const url = `/data/external/POSEIDON/${Alpine.store('entity').tspr}_${Alpine.store('entity').type}_${Alpine.store('entity').pid}`;
fetch(url) fetch(url)
.then(res => res.json()) .then(res => res.json())

2
src/Data/descriptors.php

@ -34,8 +34,6 @@ if (!empty($cellcode)) {
JOIN criterias c on cps.criteria_id = c.id JOIN criterias c on cps.criteria_id = c.id
JOIN descriptors d on c.parent_id = d.id JOIN descriptors d on c.parent_id = d.id
WHERE station_reference_id = {$entity_id}"; WHERE station_reference_id = {$entity_id}";
echo $query;
exit();
} }
} }

Loading…
Cancel
Save