Skip to content

Commit

Permalink
fix(tutorial): use the new column type text-rich instead of text-long
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian Steffens committed Sep 8, 2023
1 parent e279715 commit 0877923
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/Service/TableTemplateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private function makeWeight(Table $table):void {
$params = [
'title' => $this->l->t('Comments'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',
];
$columns['comment'] = $this->createColumn($table->id, $params);

Expand Down Expand Up @@ -234,15 +234,15 @@ private function makeCustomers(Table $table):void {
$params = [
'title' => $this->l->t('Description'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['description'] = $this->createColumn($table->id, $params);

$params = [
'title' => $this->l->t('Contact information'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['contactInformation'] = $this->createColumn($table->id, $params);
Expand All @@ -259,7 +259,7 @@ private function makeCustomers(Table $table):void {
$params = [
'title' => $this->l->t('Comment'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['comment'] = $this->createColumn($table->id, $params);
Expand Down Expand Up @@ -408,7 +408,7 @@ private function makeVacationRequests(Table $table):void {
$params = [
'title' => $this->l->t('Comments'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['comment'] = $this->createColumn($table->id, $params);
Expand Down Expand Up @@ -537,7 +537,7 @@ private function makeMembers(Table $table):void {
$params = [
'title' => $this->l->t('Skills'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['skills'] = $this->createColumn($table->id, $params);
Expand All @@ -553,7 +553,7 @@ private function makeMembers(Table $table):void {
$params = [
'title' => $this->l->t('Comments'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['comment'] = $this->createColumn($table->id, $params);
Expand Down Expand Up @@ -595,7 +595,7 @@ private function makeTodo(Table $table): void {
$params = [
'title' => $this->l->t('Description'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',
'description' => $this->l->t('Title or short description'),
'textMultiline' => true,

Expand All @@ -605,7 +605,7 @@ private function makeTodo(Table $table): void {
$params = [
'title' => $this->l->t('Target'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',
'description' => $this->l->t('Date, time or whatever'),

];
Expand All @@ -623,7 +623,7 @@ private function makeTodo(Table $table): void {
$params = [
'title' => $this->l->t('Comments'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['comments'] = $this->createColumn($table->id, $params);
Expand Down Expand Up @@ -707,7 +707,7 @@ private function makeStartupTable(Table $table):void {
$params = [
'title' => $this->l->t('How to do'),
'type' => 'text',
'subtype' => 'long',
'subtype' => 'rich',

];
$columns['how'] = $this->createColumn($table->id, $params);
Expand Down

0 comments on commit 0877923

Please sign in to comment.