From dc3b67777d290eaef3d233aa65394f81e5cb5317 Mon Sep 17 00:00:00 2001 From: A S Date: Thu, 9 Apr 2020 10:54:32 +0200 Subject: [PATCH] Patch 1 (#478) * Update create_model.php Corrected `implode()` in `ngRestScopes()` in create model command template. implode ( string $glue , array $pieces ) * Update CHANGELOG.md Adjusted for pr * Update .travis.yml Co-authored-by: Basil --- .travis.yml | 2 +- CHANGELOG.md | 1 + src/commands/views/crud/create_model.php | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index bcd06662db..c23d5a62c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ services: install: - travis_retry composer self-update && composer --version - - composer config -g github-oauth.github.com "$TOKEN" + - composer config -g github-oauth.github.com $TOKEN - export PATH="$HOME/.composer/vendor/bin:$PATH" - travis_retry composer install --verbose --prefer-dist --optimize-autoloader --no-progress --no-interaction diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a135ab19b..0120b2df43 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ In order to read more about upgrading and BC breaks have a look at the [UPGRADE ## 3.2.0 ++ [#478](https://github.com/luyadev/luya-module-admin/pull/478) Corrected `implode()` in `ngRestScopes()` in create model command template. + [#475](https://github.com/luyadev/luya-module-admin/pull/475) Added new option to return a none empty tag title. + [#476](https://github.com/luyadev/luya-module-admin/pull/476) Ensure importers skip objects which are not of the certain type. This is importend when a folder is used for other data. diff --git a/src/commands/views/crud/create_model.php b/src/commands/views/crud/create_model.php index 77d52d3144..9fe35fc6de 100644 --- a/src/commands/views/crud/create_model.php +++ b/src/commands/views/crud/create_model.php @@ -79,9 +79,9 @@ public function ngRestAttributeTypes() public function ngRestScopes() { return [ - ['list', ['']], - [['create', 'update'], ['']], + ['list', ['']], + [['create', 'update'], ['']], ['delete', false], ]; } -} \ No newline at end of file +}