Skip to content

Cloned RunTemplate should be created disabled #8

Description

@Vitexus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions