This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/config/install/frontback.settings.yml b/config/install/frontback.settings.yml | |
| index 05b9448..2b02576 100644 | |
| --- a/config/install/frontback.settings.yml | |
| +++ b/config/install/frontback.settings.yml | |
| @@ -3,3 +3,5 @@ frontback_endpoint: '' | |
| hide_button: false | |
| hide_reporter_options: false | |
| hide_assignee_options: false | |
| +show_on_nonadmin_routes: true | |
| +show_on_admin_routes: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/config/install/frontback.settings.yml b/config/install/frontback.settings.yml | |
| index 05b9448..2b02576 100644 | |
| --- a/config/install/frontback.settings.yml | |
| +++ b/config/install/frontback.settings.yml | |
| @@ -3,3 +3,5 @@ frontback_endpoint: '' | |
| hide_button: false | |
| hide_reporter_options: false | |
| hide_assignee_options: false | |
| +show_on_nonadmin_routes: true | |
| +show_on_admin_routes: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/config/install/frontback.settings.yml b/config/install/frontback.settings.yml | |
| index 05b9448..2b02576 100644 | |
| --- a/config/install/frontback.settings.yml | |
| +++ b/config/install/frontback.settings.yml | |
| @@ -3,3 +3,5 @@ frontback_endpoint: '' | |
| hide_button: false | |
| hide_reporter_options: false | |
| hide_assignee_options: false | |
| +show_on_nonadmin_routes: true | |
| +show_on_admin_routes: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/type/rec/certificate.php b/type/rec/certificate.php | |
| index 0874335..993775f 100644 | |
| --- a/type/rec/certificate.php | |
| +++ b/type/rec/certificate.php | |
| @@ -106,7 +106,25 @@ $pdf->Line($x + 150, $y + 175, $x + 150 + 435, $y + 175, $linestyle); | |
| $pdf->Line($x + 150, $y + 178, $x + 150 + 435, $y + 178, $linestyle); | |
| certificate_print_text($pdf, $x, $y + 185, 'C', 'franklingothicmedium', '', 14, get_string('statement', 'certificate')); | |
| $pdf->SetTextColor(0, 0, 0); | |
| -certificate_print_text($pdf, $x, $y + 225, 'C', 'georgia', '', 30, strtoupper($course->fullname)); | |
| +$coursename = $course->fullname; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/paragraphs_edit.routing.yml b/paragraphs_edit.routing.yml | |
| index c80d671..3231c41 100644 | |
| --- a/paragraphs_edit.routing.yml | |
| +++ b/paragraphs_edit.routing.yml | |
| @@ -18,7 +18,7 @@ paragraphs_edit.clone_form: | |
| defaults: | |
| _entity_form: 'paragraph.entity_clone' | |
| requirements: | |
| - _entity_access: 'paragraph.update' | |
| + _entity_access: 'root_parent.update' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/paragraphs_edit.links.contextual.yml b/paragraphs_edit.links.contextual.yml | |
| index 4f8d6a8..163819e 100644 | |
| --- a/paragraphs_edit.links.contextual.yml | |
| +++ b/paragraphs_edit.links.contextual.yml | |
| @@ -3,11 +3,6 @@ paragraphs_edit.edit_form: | |
| group: paragraph | |
| title: Edit | |
| -paragraphs_edit.clone_form: | |
| - route_name: paragraphs_edit.clone_form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/composer.json b/composer.json | |
| index 0a6fa1f..2a598e2 100644 | |
| --- a/composer.json | |
| +++ b/composer.json | |
| @@ -1,6 +1,6 @@ | |
| { | |
| "name": "drupal/paragraphs_edit", | |
| - "description": "Allows users to edit/clone and delete paragraphs.", | |
| + "description": "Allows users to edit and delete paragraphs.", | |
| "type": "drupal-module", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/modules/quickedit/src/QuickEditController.php b/core/modules/quickedit/src/QuickEditController.php | |
| index 3bed196661..0f6af4f143 100644 | |
| --- a/core/modules/quickedit/src/QuickEditController.php | |
| +++ b/core/modules/quickedit/src/QuickEditController.php | |
| @@ -257,7 +257,7 @@ public function fieldForm(EntityInterface $entity, $field_name, $langcode, $view | |
| */ | |
| protected function renderField(EntityInterface $entity, $field_name, $langcode, $view_mode_id) { | |
| $entity_view_mode_ids = array_keys($this->entityManager()->getViewModes($entity->getEntityTypeId())); | |
| - if (in_array($view_mode_id, $entity_view_mode_ids)) { | |
| + if (in_array($view_mode_id, $entity_view_mode_ids) || $view_mode_id == 'default') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/config/install/embed.settings.yml b/config/install/embed.settings.yml | |
| deleted file mode 100644 | |
| index f8f7a3e..0000000 | |
| --- a/config/install/embed.settings.yml | |
| +++ /dev/null | |
| @@ -1,2 +0,0 @@ | |
| -file_scheme: 'public' | |
| -upload_directory: 'embed_buttons' | |
| diff --git a/config/schema/embed.schema.yml b/config/schema/embed.schema.yml | |
| index e232a20..623a06f 100644 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/paragraphs.install b/paragraphs.install | |
| index 02462b6..88fc028 100644 | |
| --- a/paragraphs.install | |
| +++ b/paragraphs.install | |
| @@ -328,6 +328,12 @@ function paragraphs_update_8018(&$sandbox) { | |
| $sandbox['current'] = 0; | |
| } | |
| + // Make sure we don't get stuck in a loop if there aren't any paragraphs. | |
| + if ($sandbox['total'] == 0) { |