Skip to content

Commit

Permalink
Try to fix Report's updateApiURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Oct 12, 2023
1 parent 9afee1c commit 9f65223
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/AbraFlexi/Report.php
Expand Up @@ -49,10 +49,13 @@ public function loadFromAbraFlexi($id = null) {
*/
public function updateApiURL() {
$code = $this->getDataValue('kod');
$this->unsetDataValue('kod');
$result = parent::updateApiURL();
if(is_string($this->init) && strstr($this->init, $code) ){
$this->setMyKey(\AbraFlexi\RO::uncode($this->init));
} else {
$this->unsetDataValue('kod');
$result = parent::updateApiURL();
}
$this->setDataValue('kod', $code);
return $result;
}

}

0 comments on commit 9f65223

Please sign in to comment.