From e422beec74828b295935ed02ba79399b107b55a6 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 12 Jan 2021 10:21:17 +0100 Subject: [PATCH] fix #3245: only use default schedule for new jobs an empty schedule means 'none', so do not fill it with the default in case we edit an existing job (like we do already for sync jobs) Signed-off-by: Dominik Csapak --- www/window/VerifyJobEdit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/window/VerifyJobEdit.js b/www/window/VerifyJobEdit.js index 2a22e3d6..40db207d 100644 --- a/www/window/VerifyJobEdit.js +++ b/www/window/VerifyJobEdit.js @@ -23,6 +23,7 @@ Ext.define('PBS.window.VerifyJobEdit', { me.isCreate = !id; me.url = id ? `${baseurl}/${id}` : baseurl; me.method = id ? 'PUT' : 'POST'; + me.scheduleValue = id ? null : 'daily'; me.autoLoad = !!id; me.editDatastore = me.datastore === undefined && me.isCreate; return { }; @@ -64,8 +65,8 @@ Ext.define('PBS.window.VerifyJobEdit', { name: 'schedule', fieldLabel: gettext('Schedule'), emptyText: gettext('none (disabled)'), - value: 'daily', cbind: { + value: '{scheduleValue}', deleteEmpty: '{!isCreate}', }, },