1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00

Minor unrelated adjustments

This commit is contained in:
Ryan Cramer
2023-08-01 11:19:29 -04:00
parent 1271fa684a
commit 223c0e79be
5 changed files with 15 additions and 10 deletions

View File

@@ -1352,7 +1352,7 @@ class PagesLoader extends Wire {
}
} catch(\Exception $e) {
$error = $e->getMessage() . " [pageClass=$class, template=$template]";
$user = $this->wire('user');
$user = $this->wire()->user;
if($user && $user->isSuperuser()) $this->error($error);
$this->wire()->log->error($error);
$this->trackException($e, false);

View File

@@ -84,9 +84,10 @@ class PagesLoaderCache extends Wire {
if(!ctype_digit("$id")) $id = str_replace('id=', '', $id);
if(ctype_digit("$id")) $id = (int) $id;
if(!isset($this->pageIdCache[$id])) return null;
/** @var Page $page */
$page = $this->pageIdCache[$id];
$page->setOutputFormatting($this->pages->outputFormatting);
$page = $this->pageIdCache[$id]; /** @var Page $page */
$of = $this->pages->loader()->getOutputFormatting();
if(!$of && $page === $this->wire()->page) return $page; // skip of() adjustment
$page->of($of);
return $page;
}

View File

@@ -666,7 +666,7 @@ ul.action-group{
/* AdminDataTableSortable */
.AdminDataTableSortable th {
.AdminDataTableSortable th:not(.sorter-false) {
&:after {
content: "\f0dc";
font-family: fontAwesome;
@@ -689,7 +689,7 @@ ul.action-group{
content: none; // newer version of tablesorter has different markup.
}
tr.tablesorter-headerRow th {
tr.tablesorter-headerRow th:not(.sorter-false) {
& .tablesorter-header-inner:after{
content: " ";
@@ -1305,4 +1305,4 @@ body.pw-init .toggle-icon {
padding-right: 0.9em;
}
}
}

View File

@@ -60,6 +60,12 @@ table.AdminDataList td .sort-date {
display: none;
}
/*
table.AdminDataTableSortable thead tr.tablesorter-headerRow th.sorter-false .tablesorter-header-inner {
display: none !important;
}
*/
/*
table.AdminDataTableResizable,
table.AdminDataTableResizable *,
@@ -161,5 +167,3 @@ table.AdminDataTableResizable *:after {
}
}

View File

@@ -1482,7 +1482,7 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
if($userTemplate && $userTemplate->pageLabelField) {
$f->labelFieldFormat = $userTemplate->pageLabelField;
} else {
$f->labelFieldFormat = '{name} ({email}) [roles.name]';
$f->labelFieldFormat = '{name} ({email}) [{roles.name}]';
}
$f->searchFields = implode(' ', $searchFields);
$f->maxSelectedItems = 1;