Skip to content

Commit

Permalink
Fix an error when editing nodes with specific multi-site permissions set
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Jul 4, 2024
1 parent 4b6272c commit e6f5790
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
19 changes: 0 additions & 19 deletions config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -229,25 +229,6 @@
"rFN" : 0,
"uCM" : 0
},
"\/docs\/get-started\/upgrading-from-v1.md" : {
"cB" : 0,
"cS" : 0,
"eF" : 1,
"eL" : 1,
"ema" : 1,
"eSQ" : 1,
"ft" : 4096,
"hM" : 0,
"oA" : 1,
"oAP" : "\/docs\/get-started\/upgrading-from-v1.html",
"oF" : 0,
"oFM" : 0,
"oS" : 0,
"pHT" : 0,
"pME" : 1,
"rFN" : 0,
"uCM" : 0
},
"\/docs\/getting-elements\/node-queries.md" : {
"cB" : 0,
"cS" : 0,
Expand Down
2 changes: 1 addition & 1 deletion src/templates/navs/_build.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{ label: 'Navigations' | t('navigation'), url: url('navigation/navs') },
] %}

{% if craft.app.getIsMultiSite() %}
{% if craft.app.getIsMultiSite() and requestedSite %}
{% set crumbs = crumbs | unshift({
id: 'site-crumb',
icon: 'world',
Expand Down
2 changes: 1 addition & 1 deletion src/templates/navs/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{ label: 'Navigations' | t('navigation'), url: url('navigation/navs') },
] %}

{% if craft.app.getIsMultiSite() %}
{% if craft.app.getIsMultiSite() and requestedSite %}
{% set crumbs = crumbs | unshift({
id: 'site-crumb',
icon: 'world',
Expand Down
2 changes: 1 addition & 1 deletion src/templates/navs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{ label: 'Navigations' | t('navigation'), url: url('navigation/navs') },
] %}

{% if craft.app.getIsMultiSite() %}
{% if craft.app.getIsMultiSite() and requestedSite %}
{% set crumbs = crumbs | unshift({
id: 'site-crumb',
icon: 'world',
Expand Down

0 comments on commit e6f5790

Please sign in to comment.