Skip to content

Commit

Permalink
Merge pull request #16 from thelia-modules/hotfix
Browse files Browse the repository at this point in the history
fix templates
  • Loading branch information
Lucanis committed Mar 14, 2024
2 parents 5f66539 + 3a1413c commit 5e6b57c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.2.0</version>
<version>1.2.1</version>
<authors>
<author>
<name>Damien Foulhoux</name>
Expand Down
2 changes: 1 addition & 1 deletion Controller/Admin/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function toggleHome(
}

$prevHomepage = PageQuery::create()
->filterByIsHome()
->filterByIsHome(1)
->findOne();


Expand Down
2 changes: 1 addition & 1 deletion templates/backOffice/default/includes/pages-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</td>
<td>
<div class="make-switch switch-small change-home" data-on="success" data-off="danger" data-on-label="<i class='glyphicon glyphicon-ok'></i>" data-off-label="<i class='glyphicon glyphicon-remove'></i>">
<input type="checkbox" name="visible" value="1" {if $PAGE_IS_HOME}checked="checked"{/if}/>
<input type="checkbox" name="visible" value="{$ID}" {if $PAGE_IS_HOME}checked="checked"{/if}/>
</div>
</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion templates/backOffice/default/new-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<div class="col-md-6">
{form_field field="thelia-block"}
<div class="form-group ">
<label for="{$label_attr.for}" class="control-label">{$label}</label>
<label class="control-label">{$label}</label>
<select id="page_form_page_form-id-thelia-block" name="{$name}" class="form-control ">
{foreach $choices as $choice}
{if $choice->value != 0}
Expand Down

0 comments on commit 5e6b57c

Please sign in to comment.