Skip to content

Commit

Permalink
Pint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Jan 22, 2024
1 parent 92fb433 commit 75580c2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/Http/Controllers/CrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public function crudIndex(Request $request)
// Don't use total as it won't use the distinct() filters (typically when doing
// left join on the entities table)
$filteredCount = $models->total();
//$filteredCount = count($models); //->total()
} else {
/** @var Paginator $models */
$models = $base->paginate();
Expand Down
2 changes: 1 addition & 1 deletion app/Observers/CampaignObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function saving(Campaign $campaign)
$isPublic = request()->get('is_public', null);
if (!empty($isPublic) && $previousVisibility == Campaign::VISIBILITY_PRIVATE) {
$campaign->visibility_id = Campaign::VISIBILITY_PUBLIC;
// Default to public for now. Later will have REVIEW mode.
// Default to public for now. Later will have REVIEW mode.
} elseif (empty($isPublic) && $previousVisibility != Campaign::VISIBILITY_PRIVATE) {
$campaign->visibility_id = Campaign::VISIBILITY_PRIVATE;
}
Expand Down
1 change: 0 additions & 1 deletion app/Renderers/DatagridRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ private function renderHeadColumn($column)
$class = $column['type'];
if ($type == 'avatar') {
$class = (!empty($column['parent']) ? $this->hidden : $class) . ' w-14';
//$html = null;
} elseif ($type == 'location') {
$class .= ' ' . $this->hidden;
$label = Arr::get($column, 'label', Module::singular(config('entities.ids.location'), __('entities.location')));
Expand Down
2 changes: 1 addition & 1 deletion app/Renderers/DatagridRenderer2.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function bulks(): array
}
continue;
}
// More specific use cases?
// More specific use cases?
} elseif ($bulk === Layout::ACTION_DELETE) {
if (auth()->check() && auth()->user()->isAdmin()) {
$this->bulks[] = $bulk;
Expand Down

0 comments on commit 75580c2

Please sign in to comment.