Add trailing comma to pseudoconstant array in DAOs
authoreileen <emcnaughton@wikimedia.org>
Wed, 22 May 2019 03:10:36 +0000 (15:10 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 22 May 2019 03:10:36 +0000 (15:10 +1200)
Code change only includes sample - full regenerate will follow after merge

CRM/ACL/DAO/ACL.php
xml/templates/dao.tpl

index 3e59f9d2f9da206c0c96a6f84e07f27fcfb53844..28656e49e3432b3455f2b09dcfaac6e36d8816d7 100644 (file)
@@ -223,7 +223,7 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO {
           ],
           'pseudoconstant' => [
             'callback' => 'CRM_ACL_BAO_ACL::operation',
-          ]
+          ],
         ],
         'object_table' => [
           'name' => 'object_table',
index f03e96eef698ea5d48afa561e0a20d8202640df2..8e634226a353ef342a5d97859825bc48121c11dd 100644 (file)
@@ -154,7 +154,7 @@ class {$table.className} extends CRM_Core_DAO {ldelim}
   ),
 {/if}
 {if $field.pseudoconstant}
-  'pseudoconstant' => {$field.pseudoconstant|@print_array}
+  'pseudoconstant' => {$field.pseudoconstant|@print_array},
 {/if} {* field.pseudoconstant *}                                                                    ),
 {/foreach} {* table.fields *}
                                       );