Skip to content

Commit

Permalink
Merge pull request #388 from Progi1984/fixRelease211
Browse files Browse the repository at this point in the history
Fixes some bugs in Edit Page
  • Loading branch information
Progi1984 authored Apr 8, 2022
2 parents 24c0822 + e8ecd7c commit 363ed4d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _dev/back/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ $(window).ready(() => {

const landscape = $(`.panel-body-${id} .psr-picto`).attr('src');

if (typeof landscape === 'undefined') {
if (typeof landscape === 'undefined' || landscape === 'undefined') {
$('.psr-picto:visible').hide();
$('.svg_chosed_here:visible').hide();
$('.landscape').show();
Expand Down
2 changes: 1 addition & 1 deletion controllers/admin/AdminBlockListingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function displayAjaxSaveBlockContent()
}
$blockPsr->handleBlockValues($psr_languages, $type_link, $id_cms);
$blockPsr->icon = $picto;
if (empty($picto)) {
if (!empty($picto)) {
$blockPsr->custom_icon = '';
}
$blockPsr->date_add = date('Y-m-d H:i:s');
Expand Down
2 changes: 1 addition & 1 deletion views/dist/back.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/dist/back.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/dist/front.js.map

Large diffs are not rendered by default.

0 comments on commit 363ed4d

Please sign in to comment.