Skip to content

Commit 04dcd1d

Browse files
authored
2 parents f42202f + bc353e2 commit 04dcd1d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

future/lib/class-gamajo-template-loader.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ public function get_template_part( $slug, $name = null, $load = true ) {
116116
// Get files names of templates, for given slug and name.
117117
$templates = $this->get_template_file_names( $slug, $name );
118118

119-
if ( $slug == 'note' ) {
120-
$load = false;
121-
}
122-
123119
// Return the part that is found.
124120
return $this->locate_template( $templates, $load, false );
125121
}

tests/unit-tests/GravityView_Future_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3682,7 +3682,7 @@ public function test_frontend_field_html_notes() {
36823682
$field = \GV\Internal_Field::by_id( 'notes' );
36833683
$field->update_configuration( array( 'notes' => array( 'view' => true ) ) );
36843684
$this->assertStringContainsString( 'gv-has-notes', $renderer->render( $field, $view, null, $entry, $request ) );
3685-
#$this->assertStringContainsString( 'this <script>1</script> is a note :) {entry_id}', $renderer->render( $field, $view, null, $entry, $request ) );
3685+
$this->assertStringContainsString( 'this <script>1</script> is a note :) {entry_id}', $renderer->render( $field, $view, null, $entry, $request ) );
36863686

36873687
$field->update_configuration( array( 'notes' => array( 'view' => true, 'add' => true ) ) );
36883688
#$this->assertStringContainsString( 'gv-add-note-submit', $renderer->render( $field, $view, null, $entry, $request ) );

0 commit comments

Comments
 (0)