Commit 154426b2 authored by ErikHommel's avatar ErikHommel 🏘
Browse files

fix issue #15

parent 215b6a6c
......@@ -2,6 +2,7 @@ Version 1.9 (not yet released)
===========
* Support deleting conditions from actions.
* Fixed issue #15 Errors on import from extensions
Version 1.8
===========
......
......@@ -188,10 +188,12 @@ class ExportToJson {
}
// Remove all form processors which are in code or overridden but not imported
$dao = \CRM_Core_DAO::executeQuery("SELECT id, name FROM civicrm_form_processor_instance WHERE id NOT IN (".implode($importedIds, ",").") AND status IN (".\CRM_FormProcessor_Status::IN_CODE.", ".\CRM_FormProcessor_Status::OVERRIDDEN.")");
while ($dao->fetch()) {
\CRM_FormProcessor_BAO_FormProcessorInstance::deleteWithId($dao->id);
$return['deleted form processors'][] = $dao->id.": ".$dao->name;
if (!empty($importedIds)) {
$dao = \CRM_Core_DAO::executeQuery("SELECT id, name FROM civicrm_form_processor_instance WHERE id NOT IN (".implode($importedIds, ",").") AND status IN (".\CRM_FormProcessor_Status::IN_CODE.", ".\CRM_FormProcessor_Status::OVERRIDDEN.")");
while ($dao->fetch()) {
\CRM_FormProcessor_BAO_FormProcessorInstance::deleteWithId($dao->id);
$return['deleted form processors'][] = $dao->id.": ".$dao->name;
}
}
return $return;
}
......
......@@ -16,7 +16,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
<url desc="Action-Provider Extension">https://lab.civicrm.org/extensions/action-provider</url>
</urls>
<releaseDate>2020-07-28</releaseDate>
<releaseDate>2020-08-05</releaseDate>
<version>1.9-dev</version>
<develStage>stable</develStage>
<compatibility>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment