File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public function prepareInputForAdd($input)
126
126
$ input ['secret ' ] = $ key ->encrypt (self ::getNewIDOrSecret ());
127
127
128
128
$ input ['grants ' ] = json_encode ($ input ['grants ' ] ?? []);
129
- $ input ['scopes ' ] = json_encode ($ input ['scopes ' ] ?? [ ]);
129
+ $ input ['scopes ' ] = json_encode (empty ( $ input ['scopes ' ]) ? [] : $ input [ ' scopes ' ]);
130
130
131
131
if (empty ($ input ['redirect_uri ' ])) {
132
132
$ input ['redirect_uri ' ] = ['/api.php/oauth2/redirection ' ];
@@ -153,7 +153,7 @@ public function prepareInputForUpdate($input)
153
153
$ input ['grants ' ] = json_encode ($ input ['grants ' ]);
154
154
}
155
155
if (isset ($ input ['scopes ' ])) {
156
- $ input ['scopes ' ] = json_encode ($ input ['scopes ' ]);
156
+ $ input ['scopes ' ] = json_encode (empty ( $ input [ ' scopes ' ]) ? [] : $ input ['scopes ' ]);
157
157
}
158
158
$ input ['redirect_uri ' ] = json_encode ($ input ['redirect_uri ' ] ?? []);
159
159
Original file line number Diff line number Diff line change 32
32
33
33
{% import ' components/form/fields_macros.html.twig' as fields %}
34
34
35
- <div class =" asset {{ bg }} " >
35
+ <div class =" asset" >
36
36
{{ include (' components/form/header.html.twig' ) }}
37
37
38
38
{% set rand = random () %}
39
39
{% set params = params ?? [] %}
40
40
{% set field_options = {} %}
41
41
42
42
<div class =" card-body d-flex flex-wrap" >
43
- <div class =" col-12 col-xxl-{{ item_has_pictures ? ' 9 ' : ' 12 ' }} flex-column" >
43
+ <div class =" col-12 col-xxl-12 flex-column" >
44
44
<div class =" d-flex flex-row flex-wrap flex-xl-nowrap" >
45
45
<div class =" row flex-row align-items-start flex-grow-1" >
46
46
<div class =" row flex-row" >
You can’t perform that action at this time.
0 commit comments