Problem
Cloning a RunTemplate via the "💕 Clone" button (runtemplateclone.php) copies the active column verbatim from the source. Cloning an active RunTemplate produces another active one, which the scheduler (active=true filter) can pick up and run before anyone has reviewed the copied config (credentials, env vars, cron, company binding) — i.e. it can launch a misconfigured RunTemplate.
Fix
Add RunTemplate::cloneAs() in core, which always sets active=false on the clone, and use it here.
Fixed by: #7
Depends on core: VitexSoftware/php-vitexsoftware-multiflexi-core#53
Same bug in: VitexSoftware/multiflexi-web5#4
Related CLI feature: VitexSoftware/multiflexi-cli#56
For SpojeNetIT.
Problem
Cloning a RunTemplate via the "💕 Clone" button (
runtemplateclone.php) copies theactivecolumn verbatim from the source. Cloning an active RunTemplate produces another active one, which the scheduler (active=truefilter) can pick up and run before anyone has reviewed the copied config (credentials, env vars, cron, company binding) — i.e. it can launch a misconfigured RunTemplate.Fix
Add
RunTemplate::cloneAs()in core, which always setsactive=falseon the clone, and use it here.Fixed by: #7
Depends on core: VitexSoftware/php-vitexsoftware-multiflexi-core#53
Same bug in: VitexSoftware/multiflexi-web5#4
Related CLI feature: VitexSoftware/multiflexi-cli#56
For SpojeNetIT.