Skip to content

Commit

Permalink
Merge branch 'release/2.0' into release/2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
danrot committed Sep 9, 2020
2 parents b77e3d8 + b506e82 commit 40fa173
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"ext-dom": "*",
"ext-json": "*",
"ext-simplexml": "*",
"composer/package-versions-deprecated": "^1.8",
"contao/imagine-svg": "^0.2.2 || ^1.0",
"dantleech/phpcr-migrations-bundle": "^1.0",
"doctrine/annotations": "^1.2",
Expand Down
14 changes: 10 additions & 4 deletions src/Sulu/Bundle/AdminBundle/Resources/js/components/Form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,22 @@ const types = [
const [type, setType] = React.useState('work');

<Form>
<Form.Section label="Section 1" size={3}>
<Form.Section label="Section 1" colSpan={3}>
<Form.Field label="Author" onTypeChange={setType} types={types} type={type}>
<input type="text" style={{width: '100%'}} />
</Form.Field>
</Form.Section>
<Form.Section label="Section 2" size={9}>
<Form.Field description="This is the title" label="Title" required={true} size={3}>
<Form.Section label="Section 2" colSpan={9}>
<Form.Field description="This is the title" label="Title" required={true} colSpan={3}>
<input type="text" style={{width: '100%'}} />
</Form.Field>
<Form.Field description="This is the second title" error="Error!" label="Second title" required={true} size={9}>
<Form.Field
description="This is the second title"
error="Error!"
label="Second title"
required={true}
colSpan={9}
>
<input type="text" style={{width: '100%'}} />
</Form.Field>
<Form.Field description="Article" label="Article">
Expand Down
2 changes: 1 addition & 1 deletion src/Sulu/Bundle/TestBundle/Testing/TestUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function loadUserByUsername($username)
*/
public function refreshUser(UserInterface $user)
{
if (self::TEST_USER_USERNAME === $this->getUser()->getUsername()) {
if (self::TEST_USER_USERNAME === $user->getUsername()) {
return $this->getUser();
}

Expand Down

0 comments on commit 40fa173

Please sign in to comment.