1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 16:54:44 +02:00

Various minor updates

This commit is contained in:
Ryan Cramer
2022-11-25 14:27:36 -05:00
parent 9bb9d71729
commit 9c3d03c4a1
5 changed files with 270 additions and 238 deletions

View File

@@ -309,7 +309,7 @@ class PagesLoaderCache extends Wire {
// cache non-default languages separately
if($this->wire()->languages) {
$language = $this->wire()->user->language;
if($language && !$language->isDefault()) {
if($language && !$language->isDefault && $language->name != 'default') {
$selector .= ", _lang=$language->id"; // for caching purposes only, not recognized by PageFinder
}
}

View File

@@ -196,6 +196,7 @@ class PageFrontEdit extends WireData implements Module {
*
*/
public function setPage(Page $page) {
$page->setQuietly('_PageFrontEdit', true);
$this->page = $page;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1353,7 +1353,7 @@ function InputfieldDependencies($target) {
// also allow for matching a "0" as an unchecked value, but only if there's isn't already an input with that value
if(($field.attr('type') == 'checkbox' || $field.attr('type') == 'radio') && !$field.is(":checked")) {
if($("#Inputfield_" + conditionField + "_0").length == 0) {
if($("#Inputfield_" + conditionField + "_0").length == 0 && $('#' + conditionField + '_0').length == 0) {
values[1] = '0';
}
}

File diff suppressed because one or more lines are too long