diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-01-31 14:53:43 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2016-01-31 14:53:43 +0100 |
commit | 2ca829b417a2694153ff89ba7f14af27583c844a (patch) | |
tree | 13ad2562c145fe420f7a6bcdc73c6e5f423cfca0 | |
parent | 43757c20ccadb589ac0aecd94561fa99d17f792d (diff) | |
download | extbase-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-x | add_extbase_property.sh | 1 |
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 |