Fix up some action code#2292
Conversation
WalkthroughThe changes modify the Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant M as trigger_actions Method
C->>M: Call trigger_actions($form, ...)
alt $form is not an object
M-->>C: Return early (no further processing)
else $form is an object
M->>M: Check if parent_form_id is numeric and non-empty
alt Child entry condition met
M->>M: Process as a child entry
else
M->>M: Proceed with standard logic
end
M-->>C: Continue execution with processed data
end
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Definitions (1)classes/controllers/FrmFormActionsController.php (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
FrmForm::maybe_get_form.$child_entrydeclaration line. It has anisset &&check that is now reduced to a! empty. I also dropped theIs_objectcheck, as it now happens earlier and this could would never be reached with an invalid form object.