Skip to content

Commit

Permalink
rename rex_event_date.event_category_id to category_id
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Dec 8, 2024
1 parent 985346f commit 871eb1e
Show file tree
Hide file tree
Showing 24 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function ($a) {
}
);
$list->setColumnFormat(
'event_category_id',
'category_id',
'custom',
function ($a) {
$_csrf_key = rex_yform_manager_table::get('rex_event_category')->getCSRFKey();
Expand Down
2 changes: 1 addition & 1 deletion docs/10_forcal_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name_1 AS name,
teaser_1 AS teaser,
text_1 AS description,
lang_1 AS lang_id,
category AS event_category_id,
category AS category_id,
start_date AS startDate,
start_time AS startTime,
full_time AS all_day,
Expand Down
2 changes: 1 addition & 1 deletion docs/11_yform_table_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In der Termin-Tabelle werden einzelne Daten festgehalten. Nach der Installation
| value | text | name | Name |
| validate | empty | name | |
| value | textarea | description | Beschreibung |
| value | be_manager_relation | event_category_id | Kategorie |
| value | be_manager_relation | category_id | Kategorie |
| value | be_manager_relation | location | Veranstaltungsort |
| value | be_media | image | Bild |
| value | text | url | URL |
Expand Down
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
->ensureColumn(new rex_sql_column('teaser', 'text'))
->ensureColumn(new rex_sql_column('description', 'text'))
->ensureColumn(new rex_sql_column('lang_id', 'int(11)'))
->ensureColumn(new rex_sql_column('event_category_id', 'varchar(191)'))
->ensureColumn(new rex_sql_column('category_id', 'varchar(191)'))
->ensureColumn(new rex_sql_column('startDate', 'date'))
->ensureColumn(new rex_sql_column('all_day', 'tinyint(1)', false, '0'))
->ensureColumn(new rex_sql_column('doorTime', 'time'))
Expand Down
8 changes: 4 additions & 4 deletions install/rex_event.tableset.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"table": "rex_event_date",
"empty_option": "1",
"size": "",
"field": "event_category_id",
"field": "category_id",
"type": "4",
"empty_value": "",
"relation_table": "rex_event_date",
Expand Down Expand Up @@ -451,8 +451,8 @@
"db_type": "varchar(191)",
"list_hidden": 0,
"search": 1,
"name": "event_category_id",
"label": "translate:event_date_event_category_id",
"name": "category_id",
"label": "translate:event_date_category_id",
"not_required": "",
"attributes": "",
"notice": "",
Expand All @@ -473,7 +473,7 @@
"db_type": "",
"list_hidden": 1,
"search": 0,
"name": "event_category_id",
"name": "category_id",
"label": "",
"not_required": "",
"message": "Bitte geben Sie eine Kategorie an."
Expand Down
2 changes: 1 addition & 1 deletion install/rex_url_profile_events_date.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SET NAMES utf8mb4;

INSERT INTO `rex_url_generator_profile` (`namespace`, `article_id`, `clang_id`, `ep_pre_save_called`, `table_name`, `table_parameters`, `relation_1_table_name`, `relation_1_table_parameters`, `relation_2_table_name`, `relation_2_table_parameters`, `relation_3_table_name`, `relation_3_table_parameters`, `createdate`, `createuser`, `updatedate`, `updateuser`) VALUES
('event-date-id', 1, 1, 0, '1_xxx_rex_event_date', '{\"column_id\":\"id\",\"column_clang_id\":\"\",\"restriction_1_column\":\"\",\"restriction_1_comparison_operator\":\"=\",\"restriction_1_value\":\"\",\"restriction_2_logical_operator\":\"\",\"restriction_2_column\":\"\",\"restriction_2_comparison_operator\":\"=\",\"restriction_2_value\":\"\",\"restriction_3_logical_operator\":\"\",\"restriction_3_column\":\"\",\"restriction_3_comparison_operator\":\"=\",\"restriction_3_value\":\"\",\"column_segment_part_1\":\"name\",\"column_segment_part_2_separator\":\"\\/\",\"column_segment_part_2\":\"\",\"column_segment_part_3_separator\":\"\\/\",\"column_segment_part_3\":\"\",\"relation_1_column\":\"event_category_id\",\"relation_1_position\":\"BEFORE\",\"relation_2_column\":\"\",\"relation_2_position\":\"BEFORE\",\"relation_3_column\":\"\",\"relation_3_position\":\"BEFORE\",\"append_user_paths\":\"\",\"append_structure_categories\":\"0\",\"column_seo_title\":\"name\",\"column_seo_description\":\"teaser\",\"column_seo_image\":\"image_poster\",\"sitemap_add\":\"1\",\"sitemap_frequency\":\"always\",\"sitemap_priority\":\"1.0\",\"column_sitemap_lastmod\":\"updatedate\"}', 'relation_1_xxx_1_xxx_rex_event_category', '{\"column_id\":\"id\",\"column_clang_id\":\"\",\"column_segment_part_1\":\"name\",\"column_segment_part_2_separator\":\"\\/\",\"column_segment_part_2\":\"\",\"column_segment_part_3_separator\":\"\\/\",\"column_segment_part_3\":\"\"}', '', '[]', '', '[]', NOW(), 'events', NOW(), 'events');
('event-date-id', 1, 1, 0, '1_xxx_rex_event_date', '{\"column_id\":\"id\",\"column_clang_id\":\"\",\"restriction_1_column\":\"\",\"restriction_1_comparison_operator\":\"=\",\"restriction_1_value\":\"\",\"restriction_2_logical_operator\":\"\",\"restriction_2_column\":\"\",\"restriction_2_comparison_operator\":\"=\",\"restriction_2_value\":\"\",\"restriction_3_logical_operator\":\"\",\"restriction_3_column\":\"\",\"restriction_3_comparison_operator\":\"=\",\"restriction_3_value\":\"\",\"column_segment_part_1\":\"name\",\"column_segment_part_2_separator\":\"\\/\",\"column_segment_part_2\":\"\",\"column_segment_part_3_separator\":\"\\/\",\"column_segment_part_3\":\"\",\"relation_1_column\":\"category_id\",\"relation_1_position\":\"BEFORE\",\"relation_2_column\":\"\",\"relation_2_position\":\"BEFORE\",\"relation_3_column\":\"\",\"relation_3_position\":\"BEFORE\",\"append_user_paths\":\"\",\"append_structure_categories\":\"0\",\"column_seo_title\":\"name\",\"column_seo_description\":\"teaser\",\"column_seo_image\":\"image_poster\",\"sitemap_add\":\"1\",\"sitemap_frequency\":\"always\",\"sitemap_priority\":\"1.0\",\"column_sitemap_lastmod\":\"updatedate\"}', 'relation_1_xxx_1_xxx_rex_event_category', '{\"column_id\":\"id\",\"column_clang_id\":\"\",\"column_segment_part_1\":\"name\",\"column_segment_part_2_separator\":\"\\/\",\"column_segment_part_2\":\"\",\"column_segment_part_3_separator\":\"\\/\",\"column_segment_part_3\":\"\"}', '', '[]', '', '[]', NOW(), 'events', NOW(), 'events');
2 changes: 1 addition & 1 deletion lang/da_da.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Navn
event_date_teaser = Teaser
event_date_description = Beskrivelse
event_date_lang_id = Sprog ID
event_date_event_category_id = Kategori(er)
event_date_category_id = Kategori(er)
event_date_startdate = Startdato
event_date_all_day = hele dagen?
event_date_doortime = Adgangstid
Expand Down
2 changes: 1 addition & 1 deletion lang/de_de.lang
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Beschreibung
event_date_lang_id = Sprach ID
event_date_event_category_id = Kategorie(n)
event_date_category_id = Kategorie(n)
event_date_startdate = Beginn Datum
event_date_all_day = ganztägig?
event_date_doortime = Einlass-Uhrzeit
Expand Down
2 changes: 1 addition & 1 deletion lang/el_el.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/en_gb.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/es_es.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Nombre
event_date_teaser = Teaser
event_date_description = Descripción
event_date_lang_id = ID de idioma
event_date_event_category_id = Categoría(s)
event_date_category_id = Categoría(s)
event_date_startdate = Fecha de inicio
event_date_all_day = ¿todo el día?
event_date_doortime = Hora de admisión
Expand Down
2 changes: 1 addition & 1 deletion lang/fi_fi.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/fr_fr.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Nom
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = ID de langue
event_date_event_category_id = Catégorie(s)
event_date_category_id = Catégorie(s)
event_date_startdate = Date de début
event_date_all_day = toute la journée?
event_date_doortime = Heure d'ouverture
Expand Down
2 changes: 1 addition & 1 deletion lang/it_it.lang
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ event_date_name = Nome
event_date_teaser = Anteprima
event_date_description = Descrizione
event_date_lang_id = ID lingua
event_date_event_category_id = Categoria(e)
event_date_category_id = Categoria(e)
event_date_startdate = Data di inizio
event_date_all_day = tutto il giorno?
event_date_doortime = Ora di ingresso
Expand Down
2 changes: 1 addition & 1 deletion lang/nl_nl.lang
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/no_no.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/pl_pl.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/ro_ro.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/sk_sk.lang
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/sv_se.lang
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lang/tr_tr.lang
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ event_date_name = İsim
event_date_teaser = Özet
event_date_description = Açıklama
event_date_lang_id = Dil ID
event_date_event_category_id = Kategori(ler)
event_date_category_id = Kategori(ler)
event_date_startdate = Başlangıç Tarihi
event_date_all_day = tüm gün?
event_date_doortime = Kapı Açılış Saati
Expand Down
2 changes: 1 addition & 1 deletion lang/uk_uk.lang
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ event_date_name = Name
event_date_teaser = Teaser
event_date_description = Description
event_date_lang_id = Language ID
event_date_event_category_id = Category(ies)
event_date_category_id = Category(ies)
event_date_startdate = Start date
event_date_all_day = all day?
event_date_doortime = Admission time
Expand Down
2 changes: 1 addition & 1 deletion lib/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function setUrl(string $url): self
*/
public function getDateWhere($whereRaw = ''): ?rex_yform_manager_collection
{
return Date::query()->joinRelation('event_category_id', 'c')->where('c.id', $this->getId())->whereRaw($whereRaw)->orderBy('startDate', 'ASC')->orderBy('startTime', "ASC")->find();
return Date::query()->joinRelation('category_id', 'c')->where('c.id', $this->getId())->whereRaw($whereRaw)->orderBy('startDate', 'ASC')->orderBy('startTime', "ASC")->find();
}

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function generateuuid($id = null) :string
*/
public function getCategory(): ?Category
{
$this->category = Category::get((int)$this->getValue('event_category_id'));
$this->category = Category::get((int)$this->getValue('category_id'));
return $this->category;
}

Expand All @@ -132,7 +132,7 @@ public function getCategory(): ?Category
*/
public function getCategories(): rex_yform_manager_collection
{
$this->categories = $this->getRelatedCollection('event_category_id');
$this->categories = $this->getRelatedCollection('category_id');
return $this->categories;
}
/**
Expand Down Expand Up @@ -1142,7 +1142,7 @@ public function getLang() : ?rex_yform_manager_dataset {
/* Kategorie(n) */
/** @api */
public function getEventCategory() : ?rex_yform_manager_collection {
return $this->getRelatedCollection("event_category_id");
return $this->getRelatedCollection("category_id");
}

/* Beginn Datum */
Expand Down

0 comments on commit 871eb1e

Please sign in to comment.