Skip to content
Permalink
Browse files

fixed settings page if config is an empty array

  • Loading branch information...
raffaelj committed Jun 21, 2019
1 parent c54b564 commit 20c2770a129d25225f6c606d146846f6467a76ca
Showing with 6 additions and 2 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 bootstrap.php
  3. +1 −1 views/settings.php
@@ -1,5 +1,9 @@
# Changelog

## 0.1.3

* fixed: settings page didn't apply changes, if config was an empty array

## 0.1.2

* added tynymce (wysiwyg) plugin to resize images properly with the `/getImage` url
@@ -5,7 +5,7 @@
* @see https://github.com/raffaelj/cockpit_CpMultiplaneGUI
* @see https://github.com/agentejo/cockpit/
*
* @version 0.1.2
* @version 0.1.3
* @author Raffael Jesche
* @license MIT
*/
@@ -234,7 +234,7 @@
riot.util.bind(this);
this.config = {{ json_encode($config) }};
this.config = {{ !empty($config) ? json_encode($config) : '{}' }};
this.fields = {{ json_encode($fieldnames) }};
this.tab = 'main';
// this.tab = 'preview';

0 comments on commit 20c2770

Please sign in to comment.
You can’t perform that action at this time.