From 2ca829b417a2694153ff89ba7f14af27583c844a Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 31 Jan 2016 14:53:43 +0100 Subject: Cleanup leading comma searchFields if searchFields was empty --- add_extbase_property.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/add_extbase_property.sh b/add_extbase_property.sh index aefb5c9..dd1545b 100755 --- a/add_extbase_property.sh +++ b/add_extbase_property.sh @@ -184,6 +184,7 @@ sql_type="${sql_types["$typ"]}" sed -i \ -e "s/\('searchFields' => .*\),',/\1',/" \ -e "s/\('searchFields.*\)',\$/\1,$field',/" \ + -e "s/\('searchFields' => '\),\(.*\)/\1\2/" \ -e "s/\('showRecordFieldList.*\)',\$/\1, $field',/" \ $tca_file -- cgit