Skip to content

Commit 6c98ad8

Browse files
committed
Fix Api->query helper ref
1 parent 683c0dc commit 6c98ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Prismic/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function query($q, $options = array()) {
437437
} else {
438438
$ref = $this->master()->getRef();
439439
}
440-
$form = $this->forms()->everything->ref($this->master()->getRef());
440+
$form = $this->forms()->everything->ref($ref);
441441
if ($q != null && $q != "") {
442442
$form = $form->query($q);
443443
}

0 commit comments

Comments
 (0)