Skip to content

Commit

Permalink
Merge pull request #480 from portabilis/portabilis-patch-2019-01-15
Browse files Browse the repository at this point in the history
Portabilis patch 15/01/2019
  • Loading branch information
edersoares authored Jan 22, 2019
2 parents 929b978 + 3e147c6 commit 9a63c19
Show file tree
Hide file tree
Showing 22 changed files with 328 additions and 305 deletions.
10 changes: 7 additions & 3 deletions app/Console/Commands/ReportsInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ReportsInstallCommand extends Command
*
* @var string
*/
protected $signature = 'reports:install';
protected $signature = 'reports:install {--no-compile}';

/**
* The console command description.
Expand Down Expand Up @@ -45,6 +45,7 @@ protected function getInitialReportsDatabaseFile()
public function handle(Filesystem $filesystem, Connection $connection)
{
$file = $this->getInitialReportsDatabaseFile();
$compile = $this->option('no-compile') === false;

if (!$filesystem->exists($file)) {
$this->error('Initial reports database file not found.');
Expand All @@ -58,10 +59,13 @@ public function handle(Filesystem $filesystem, Connection $connection)
$filesystem->get($file)
);

$this->call('reports:compile');
if ($compile) {
$this->call('reports:compile');
}

$this->call('migrate', [
'--force' => true
'--force' => true,
'--path' => 'ieducar/modules/Reports/database/migrations',
]);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/LegacyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private function overrideGlobals()
$_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] ?? $this->request->getRequestUri();

$_GET = empty($_GET) ? $this->request->query->all() : $_GET;
$_POST = empty($_POST) ? $this->request->request->all() : $_POST;
$_POST = (empty($_POST) && $this->request->isMethod('post')) ? $this->request->request->all() : $_POST;
$_FILES = empty($_FILES) ? $this->request->files->all() : $_FILES;
$_COOKIE = empty($_COOKIE) ? $this->request->cookies->all() : $_COOKIE;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Software livre de gestão escolar",
"type": "project",
"license": "GPL-2.0-or-later",
"version": "2.1.1",
"version": "2.1.2",
"keywords": [
"Portabilis",
"i-Educar"
Expand Down
Loading

0 comments on commit 9a63c19

Please sign in to comment.