Skip to content

Commit

Permalink
Event categories have wrong identifier after installation #1720
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Dec 23, 2024
1 parent 1aae86e commit 09f9a62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion install/db_scripts/update_4_3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<step id="400">UPDATE %PREFIX%_menu SET men_icon='fa-file-signature' WHERE men_name_intern = 'newreg'</step>
<step id="410">UPDATE %PREFIX%_components SET com_name = 'SYS_EVENTS', com_name_intern = 'EVENTS' WHERE com_name_intern = 'DATES'</step>
<step id="420">UPDATE %PREFIX%_menu SET men_name = 'SYS_EVENTS', men_name_intern = 'events', men_url='/adm_program/modules/events/events.php' WHERE men_name_intern = 'dates'</step>
<step id="430">UPDATE %PREFIX%_categories SET cat_type = 'EVT' WHERE cat_type = 'DAT'</step>
<step id="440" database="mysql">UPDATE %PREFIX%_preferences pr1 INNER JOIN %PREFIX%_preferences pr2 ON pr2.prf_name = 'enable_dates_module' SET pr1.prf_value = pr2.prf_value WHERE pr1.prf_name = 'events_module_enabled'</step>
<step id="450" database="pgsql">UPDATE %PREFIX%_preferences pr1 SET prf_value = pr2.prf_value FROM %PREFIX%_preferences pr2 WHERE pr2.prf_name = 'enable_dates_module' AND pr1.prf_name = 'events_module_enabled'</step>
<step id="460">DELETE FROM %PREFIX%_preferences WHERE prf_name = 'enable_dates_module'</step>
Expand Down Expand Up @@ -123,5 +122,6 @@
<step id="1210" database="pgsql">UPDATE %PREFIX%_preferences SET prf_value = '1200' WHERE prf_name = 'photo_show_height' AND prf_value::int &lt; 800</step>
<step id="1220" database="mysql">UPDATE %PREFIX%_preferences SET prf_value = '24' WHERE prf_name = 'photo_thumbs_page' AND CAST(prf_value AS unsigned) = 16</step>
<step id="1230" database="pgsql">UPDATE %PREFIX%_preferences SET prf_value = '24' WHERE prf_name = 'photo_thumbs_page' AND prf_value::int = 16</step>
<step id="1240">UPDATE %PREFIX%_categories SET cat_type = 'EVT' WHERE cat_type = 'DAT'</step>
<step>stop</step>
</update>
6 changes: 3 additions & 3 deletions src/Organizations/Entity/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ public function createBasicData(int $userId)
, (?, ?, \'LNK\', \'INTERN\', \'INS_INTERN\', false, false, 2, ?, ?)
, (?, ?, \'ANN\', \'COMMON\', \'SYS_COMMON\', true, false, 1, ?, ?)
, (?, ?, \'ANN\', \'IMPORTANT\', \'SYS_IMPORTANT\', false, false, 2, ?, ?)
, (?, ?, \'DAT\', \'COMMON\', \'SYS_COMMON\', true, false, 1, ?, ?)
, (?, ?, \'DAT\', \'TRAINING\', \'INS_TRAINING\', false, false, 2, ?, ?)
, (?, ?, \'DAT\', \'COURSES\', \'INS_COURSES\', false, false, 3, ?, ?)';
, (?, ?, \'EVT\', \'COMMON\', \'SYS_COMMON\', true, false, 1, ?, ?)
, (?, ?, \'EVT\', \'TRAINING\', \'INS_TRAINING\', false, false, 2, ?, ?)
, (?, ?, \'EVT\', \'COURSES\', \'INS_COURSES\', false, false, 3, ?, ?)';
$queryParams = array(
$orgId, Uuid::uuid4(), $systemUserId, DATETIME_NOW,
$orgId, Uuid::uuid4(), $systemUserId, DATETIME_NOW,
Expand Down

0 comments on commit 09f9a62

Please sign in to comment.