}
}
+ /**
+ * Push the current url to the userContext.
+ *
+ * This is like a save point :-). The next status bounce will
+ * return the browser to this url unless another is added.
+ */
+ protected function pushUrlToUserContext(): void {
+ CRM_Core_Session::singleton()
+ ->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
+ }
+
/**
* Set options and attributes for chain select fields based on the controlling field's value
*/
* Set variables up before form is built.
*/
public function preProcess(): void {
+ $this->pushUrlToUserContext();
// check for post max size
CRM_Utils_Number::formatUnitSize(ini_get('post_max_size'), TRUE);
$this->assign('importEntity', $this->getTranslatedEntity());