From 7d1fcb463631904969e9e32cb3cbafb214b2ab11 Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Fri, 3 Jan 2020 22:38:33 -0600 Subject: [PATCH 1/2] BUGFIX - ElementContentDataExtension - insertBefore proper order --- src/Extensions/ElementContentDataExtension.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Extensions/ElementContentDataExtension.php b/src/Extensions/ElementContentDataExtension.php index 4dd2fee..f7e1738 100644 --- a/src/Extensions/ElementContentDataExtension.php +++ b/src/Extensions/ElementContentDataExtension.php @@ -29,7 +29,11 @@ public function updateCMSFields(FieldList $fields) ->setTitle('Link') ->setDescription('Optional. Add a call to action link.') ); - $fields->insertBefore($fields->dataFieldByName('ElementLinkID'), 'HTML'); + + $fields->insertBefore( + 'HTML', + $fields->dataFieldByName('ElementLinkID') + ); $image = $fields->dataFieldByName('Image') ->setDescription('Optional. Display an image with this content.') From 5f32cd4bb70482797150d2fc27959cb3660976b6 Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Fri, 3 Jan 2020 22:44:11 -0600 Subject: [PATCH 2/2] travis services --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b604728..c55ad60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: php +services: + - mysql + - postgresql + env: global: - COMPOSER_ROOT_VERSION=4.0.x-dev @@ -31,4 +35,4 @@ script: - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ tests/; fi after_success: - - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml -t $CODECOV_TOKEN && travis_retry php ocular.phar code-coverage:upload --format=php-clover --access-token=$SCRUT_TOKEN coverage.xml; fi \ No newline at end of file + - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml -t $CODECOV_TOKEN && travis_retry php ocular.phar code-coverage:upload --format=php-clover --access-token=$SCRUT_TOKEN coverage.xml; fi