Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uncaught TypeError: Cannot read property 'Dia' of null
- at Object.success (iDvsEnvelope.php?operation=insert:1919)
- at u (main-bundle.js:283)
- at Object.fireWith [as resolveWith] (main-bundle.js:283)
- at n (main-bundle.js:284)
- at XMLHttpRequest.t (main-bundle.js:284)
- if (GetApplication()->isGetValueSet('IdUnicoop')) {
- $IdUnicoop = GetApplication()->GetGETValue('IdUnicoop');
- $sql = "SELECT * FROM dvsMaloteDias WHERE dvsMaloteDias.IdUnicoop = $IdUnicoop";
- $queryResult = $this->GetConnection()->fetchAll($sql);
- $ContReg = count($queryResult);
- if ($ContReg > 0) {
- foreach ($queryResult as $ListaDias) {
- if ($ListaDias['Segunda'] == 1) {
- if ($TemMalote == "") {
- $TemMalote = "Segunda";
- $resultado = array ('Dia' => $TemMalote );
- } else {
- $TemMalote = $TemMalote . ", " . "Segunda";
- $resultado = array ('Dia' => $TemMalote );
- }
- }
- }
- }
- echo json_encode($resultado);
- exit;
Add Comment
Please, Sign In to add comment