Skip to content

Commit f050d4f

Browse files
committed
Fix Bugs
1 parent 060b8a8 commit f050d4f

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

assets/admin/core/components/datepicker/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
id: String,
2727
format: {
2828
type: String,
29-
default: 'dd.MM.yyyy'
29+
//default: 'dd.MM.yyyy'
3030
},
3131
multiple: {
3232
type: Boolean,

assets/admin/core/directives/vmodelValue.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ export default {
1414

1515
setTimeout(() => {
1616
if (el.getAttribute('type') === 'radio') {
17-
if (el.checked){
17+
if (el.checked) {
1818
vnode.dirs[0].instance.$root.forms[id] = val;
1919
}
20+
} else if (el.getAttribute('type') === 'checkbox') {
21+
vnode.dirs[0].instance.$root.forms[id] = Boolean(val);
2022
} else {
2123
vnode.dirs[0].instance.$root.forms[id] = val;
2224
}

bin/deploy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
git reset --hard HEAD
44
git pull
55
composer install --no-dev --optimize-autoloader
6+
bin/console cache:pool:clear cache.global_clearer
7+
bin/console doctrine:cache:clear-metadata
68
bin/console doctrine:schema:update --force --dump-sql
79
bin/console doctrine:migrations:migrate --no-interaction
810
yarn install
911
yarn run build
10-
pm2 stop all
11-
pm2 delete all
12+
pm2 stop pdadmin
13+
pm2 delete pdadmin
1214
pm2 start

ecosystem.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
module.exports = {
22
apps: [
33
{
4-
name: 'queue',
4+
name: 'pd-queue',
55
interpreter: 'php',
66
script: 'bin/console',
77
args: 'messenger:consume async --memory-limit=256M --time-limit=3600',
88
instances: 2,
99
autorestart: true,
1010
watch: false,
1111
max_memory_restart: '1G',
12+
namespace: 'pdadmin'
1213
},
1314
{
14-
name: 'cron',
15+
name: 'pd-cron',
1516
interpreter: 'php',
1617
script: 'bin/console',
1718
args: 'schedule:run',
@@ -20,6 +21,7 @@ module.exports = {
2021
instances: 1,
2122
autorestart: false,
2223
watch: false,
24+
namespace: 'pdadmin'
2325
}
2426
]
2527
};

templates/admin/layout/forms/form_div_layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@
103103
{%- endblock choice_widget_options -%}
104104

105105
{%- block checkbox_widget -%}
106-
<input type="checkbox" v-model="$root.forms.{{ id|trim }}" {{ block('widget_attributes') }} {% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />
106+
<input type="checkbox" v-set-value="{{ checked|default(0)|json_encode }}" v-model="$root.forms.{{ id|trim }}" {{ block('widget_attributes') }} {% if value is defined %} value="{{ value }}"{% endif %}/>
107107
{%- endblock checkbox_widget -%}
108108

109109
{%- block radio_widget -%}
110-
<input type="radio" v-model="$root.forms.{{ id|trim }}" v-set-value="'{{ value|json_encode }}'" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />
110+
<input type="radio" v-model="$root.forms.{{ id|trim }}" v-set-value="{{ value|json_encode }}" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />
111111
{%- endblock radio_widget -%}
112112

113113
{%- block datetime_widget -%}

0 commit comments

Comments
 (0)