From d843486e47c59649189bb1ac68b41e7a2447f2c4 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 22 Sep 2023 19:57:17 +1200 Subject: [PATCH] Loosen action typing - doing nothing is doing something --- CRM/Core/Form.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 424c7cc6ee..d0f17d883d 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1309,10 +1309,13 @@ class CRM_Core_Form extends HTML_QuickForm_Page { /** * Getter for action. * - * @return int + * @return int|null */ public function getAction() { if (!is_numeric($this->_action)) { + if (!$this->_action) { + return NULL; + } CRM_Core_Error::deprecatedWarning('action should be an integer'); return $this->_action; } -- 2.25.1