Skip to content

Commit 87a24b4

Browse files
committed
Fixed custom website favicon check box not being checked when editing
1 parent 759e859 commit 87a24b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/Http/Controllers/LinkTypeViewController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function getParamForm($typeid, $linkId = 0)
3131
$data['params'] = json_decode($link['type_params']);
3232
$data['link_title'] = $link->title;
3333
$data['link_url'] = $link->link;
34+
$data['button_id'] = $link->button_id;
3435
}
3536

3637
if (!empty($linkType) && $linkType->typename === 'predefined') {

resources/views/components/pageitems/link-form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<input type='url' name='link' value='{{$link_url}}' class='form-control' />
66

77
<div class="custom-control custom-checkbox m-2">
8-
<input type="checkbox" class="custom-control-input" value='1' {{((isset($params->GetSiteIcon) ? boolval($params->GetSiteIcon) : false) ? 'checked': '') }} name='GetSiteIcon' id="GetSiteIcon">
8+
<input type="checkbox" class="custom-control-input" value='1' {{((isset($params->GetSiteIcon) ? boolval($params->GetSiteIcon) : false) ? 'checked': '') }} name='GetSiteIcon' id="GetSiteIcon" @if($button_id == 2)checked @endif>
99

1010
<label class="custom-control-label" for="GetSiteIcon">Show website icon on button</label>
1111

0 commit comments

Comments
 (0)