Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion inc/Abilities/Flow/CreateFlowAbility.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,15 @@ private function executeSingle( array $input ): array {
$scheduling_config = $input['scheduling_config'] ?? array( 'interval' => 'manual' );
$flow_config = $input['flow_config'] ?? array();

// Store scheduling_config as manual initially. The actual scheduling
// (AS recurring action) is created by handle_scheduling_update() below.
// If we stored the real interval here, handle_scheduling_update() would
// see "nothing changed" and skip creating the AS action.
$flow_data = array(
'pipeline_id' => $pipeline_id,
'flow_name' => $flow_name,
'flow_config' => $flow_config,
'scheduling_config' => $scheduling_config,
'scheduling_config' => array( 'interval' => 'manual' ),
);

if ( null !== $agent_id && $agent_id > 0 ) {
Expand Down
Loading