mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 01:04:16 +02:00
Various minor updates
This commit is contained in:
@@ -309,7 +309,7 @@ class PagesLoaderCache extends Wire {
|
|||||||
// cache non-default languages separately
|
// cache non-default languages separately
|
||||||
if($this->wire()->languages) {
|
if($this->wire()->languages) {
|
||||||
$language = $this->wire()->user->language;
|
$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
|
$selector .= ", _lang=$language->id"; // for caching purposes only, not recognized by PageFinder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -196,6 +196,7 @@ class PageFrontEdit extends WireData implements Module {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function setPage(Page $page) {
|
public function setPage(Page $page) {
|
||||||
|
$page->setQuietly('_PageFrontEdit', true);
|
||||||
$this->page = $page;
|
$this->page = $page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -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
|
// 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(($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';
|
values[1] = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user