summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2016-01-31 14:54:36 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2016-01-31 14:54:36 +0100
commit982c135ae9c31bb45d942428e03572b43fa5e509 (patch)
treea9fc8ba752518007ed2bdfb004443344c0c3a3eb
parent2ca829b417a2694153ff89ba7f14af27583c844a (diff)
downloadextbase-generator-cli-982c135ae9c31bb45d942428e03572b43fa5e509.tar.gz
extbase-generator-cli-982c135ae9c31bb45d942428e03572b43fa5e509.tar.bz2
extbase-generator-cli-982c135ae9c31bb45d942428e03572b43fa5e509.zip
Set the field to be the title field, if it's the first property
It's the first property when label is set to 'uid'
-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 dd1545b..664a742 100755
--- a/add_extbase_property.sh
+++ b/add_extbase_property.sh
@@ -186,6 +186,7 @@ sed -i \
-e "s/\('searchFields.*\)',\$/\1,$field',/" \
-e "s/\('searchFields' => '\),\(.*\)/\1\2/" \
-e "s/\('showRecordFieldList.*\)',\$/\1, $field',/" \
+ -e "s/'label' => 'uid'/'label' => '${field}'/" \
$tca_file
# Place before the access tab, if that is available