summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2016-01-31 14:53:43 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2016-01-31 14:53:43 +0100
commit2ca829b417a2694153ff89ba7f14af27583c844a (patch)
tree13ad2562c145fe420f7a6bcdc73c6e5f423cfca0
parent43757c20ccadb589ac0aecd94561fa99d17f792d (diff)
downloadextbase-generator-cli-2ca829b417a2694153ff89ba7f14af27583c844a.tar.gz
extbase-generator-cli-2ca829b417a2694153ff89ba7f14af27583c844a.tar.bz2
extbase-generator-cli-2ca829b417a2694153ff89ba7f14af27583c844a.zip
Cleanup leading comma searchFields if searchFields was empty
-rwxr-xr-xadd_extbase_property.sh1
1 files changed, 1 insertions, 0 deletions
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