Skip to content

Commit cad7bcd

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 9710c58 + 198d3db commit cad7bcd

File tree

65 files changed

+372
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+372
-356
lines changed

docs/guide/link-to.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ Set a filter and its value; for the filter, you can either pass its custom key o
118118

119119
Set a default sort.
120120

121+
### `withGlobalFilterValues(array|string $globalFilterValues)`
122+
123+
Set a global filter value(s). Ex: `LinkToShowPage::make(...)->withGlobalFilterValues($tenant->id)->renderAsUrl()`.
124+
121125
### `setFullQuerystring(array $querystring)`
122126

123127
`LinkToEntityList` only

docs/guide/testing-with-sharp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ it('allows the user to display a leaf form', function () {
118118
});
119119
```
120120

121-
#### `withSharpGlobalFilterKeys(array|string $filterKeys): self`
121+
#### `withSharpGlobalFilterValues(array|string $filterValues): self`
122122

123-
You can specify the global filter keys to use in the Sharp context.
123+
You can specify the global filter values to use in the Sharp context.
124124

125125
```php
126126
it('allows the user to display a leaf form', function () {
@@ -129,7 +129,7 @@ it('allows the user to display a leaf form', function () {
129129

130130
$this
131131
->loginAsSharpUser($user)
132-
->withSharpGlobalFilterKeys($tenant->key)
132+
->withSharpGlobalFilterValues($tenant->id)
133133
->getSharpForm(LeafEntity::class, 16)
134134
->assertOk();
135135
});

0 commit comments

Comments
 (0)