Fields drag n drop
[civicrm-core.git] / ext / afform / core / afform.php
index e9decfee32f3ee2159f575748a9dec6083964a64..a54dd7fa7f2eabe8052d54b0f31671f8f909762c 100644 (file)
@@ -316,6 +316,7 @@ function afform_civicrm_alterAngular($angular) {
         }
         $entityType = $entities[$entityName]['type'];
         $getFields = civicrm_api4($entityType, 'getFields', [
+          'action' => 'create',
           'where' => [['name', '=', $fieldName]],
           'select' => ['title', 'input_type', 'input_attrs', 'options'],
           'loadOptions' => TRUE,