Skip to content

Commit 3e9c317

Browse files
authored
Merge pull request #1237 from Blair2004/v4.8.x
V4.8.x
2 parents cd28c8a + ee12a7c commit 3e9c317

26 files changed

+67
-62
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public/css/*.css
2828
!public/css/app.*.css
2929
!public/css/light.*.css
3030
!public/css/dark.*.css
31+
!public/css/fonts.*.css
3132
!public/css/typography.*.css
3233
!public/css/grid.*.css
3334
!public/css/animations.*.css

app/Services/CrudService.php

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -493,31 +493,32 @@ public function getEntries( $config = [] ): array
493493
$columnsLongName = [];
494494

495495
/**
496-
* Let's loop relation if they exists
496+
* First loop to retreive the columns and rename it
497497
*/
498-
if ( $this->getRelations() ) {
499-
/**
500-
* First loop to retreive the columns and rename it
501-
*/
502-
$select = [];
498+
$select = [];
503499

504-
/**
505-
* Building Select field for primary table
506-
* We're caching the table columns, since we would like to
507-
* avoid many DB Calls
508-
*/
509-
if ( ! empty( Cache::get( 'table-columns-' . $table ) ) && true === false ) {
510-
$columns = Cache::get( 'table-columns-' . $table );
511-
} else {
512-
$columns = Schema::getColumnListing( $table );
513-
Cache::put( 'table-columns-' . $table, $columns, Carbon::now()->addDays(1) );
514-
}
500+
/**
501+
* Building Select field for primary table
502+
* We're caching the table columns, since we would like to
503+
* avoid many DB Calls
504+
*/
505+
if ( ! empty( Cache::get( 'table-columns-' . $table ) ) && true === false ) {
506+
$columns = Cache::get( 'table-columns-' . $table );
507+
} else {
508+
$columns = Schema::getColumnListing( $table );
509+
Cache::put( 'table-columns-' . $table, $columns, Carbon::now()->addDays(1) );
510+
}
515511

516-
foreach ( $columns as $index => $column ) {
517-
$__name = $table . '.' . $column;
518-
$columnsLongName[] = $__name;
519-
$select[] = $__name . ' as ' . $column;
520-
}
512+
foreach ( $columns as $index => $column ) {
513+
$__name = $table . '.' . $column;
514+
$columnsLongName[] = $__name;
515+
$select[] = $__name . ' as ' . $column;
516+
}
517+
518+
/**
519+
* Let's loop relation if they exists
520+
*/
521+
if ( $this->getRelations() ) {
521522

522523
/**
523524
* we're extracting the joined table

config/nexopos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return [
4-
'version' => '4.8.11',
4+
'version' => '4.8.12',
55
'languages' => [
66
'en' => 'English',
77
'fr' => 'Français',

public/css-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"animations.css": "animations.cb4544d9bb06aeaa8e48.css",
3-
"app.css": "app.f9fb82c1b0295a171e9f.css",
3+
"app.css": "app.8e6b5ebc12879ff51a1b.css",
44
"typography.css": "typography.5d798833a07dd150efa8.css",
55
"fonts.css": "fonts.64053e5a2ec1dd65399b.css",
66
"light.css": "light.9e990100ce36c59d8156.css",

public/css/app.8e6b5ebc12879ff51a1b.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/app.f9fb82c1b0295a171e9f.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/css/fonts.64053e5a2ec1dd65399b.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/auth.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)